Skip to content

Commit 001507e

Browse files
committed
output to docker
1 parent 6f5bdca commit 001507e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Makefile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ cluster-base-image:
4040
--build-arg DASK_VERSION=${DASK_VERSION} \
4141
--build-arg PYTHON_VERSION=${PYTHON_VERSION} \
4242
--load \
43+
--output type=docker \
4344
-t ${CLUSTER_BASE_IMAGE} \
4445
-f ./Dockerfile-cluster-base \
4546
.
@@ -49,6 +50,7 @@ cluster-image: cluster-base-image $(LIB_LIGHTGBM)
4950
docker buildx build \
5051
--build-arg BASE_IMAGE=${CLUSTER_BASE_IMAGE} \
5152
--load \
53+
--output type=docker \
5254
-t ${CLUSTER_IMAGE} \
5355
-f ./Dockerfile-cluster \
5456
.
@@ -61,7 +63,7 @@ delete-repo:
6163
aws --region ${AWS_REGION} \
6264
ecr-public batch-delete-image \
6365
--repository-name ${CLUSTER_IMAGE_NAME} \
64-
--image-ids imageTag=${DASK_VERSION}
66+
--image-ids imageTag=${IMAGE_TAG}
6567
aws --region ${AWS_REGION} \
6668
ecr-public delete-repository \
6769
--repository-name ${CLUSTER_IMAGE_NAME}
@@ -122,6 +124,7 @@ notebook-base-image:
122124
--build-arg DASK_VERSION=${DASK_VERSION} \
123125
--build-arg PYTHON_VERSION=${PYTHON_VERSION} \
124126
--load \
127+
--output type=docker \
125128
-t ${NOTEBOOK_BASE_IMAGE} \
126129
-f ./Dockerfile-notebook-base \
127130
.
@@ -131,6 +134,7 @@ notebook-image: notebook-base-image $(LIB_LIGHTGBM)
131134
docker buildx build \
132135
--build-arg BASE_IMAGE=${NOTEBOOK_BASE_IMAGE} \
133136
--load \
137+
--output type=docker \
134138
-t ${NOTEBOOK_IMAGE} \
135139
-f ./Dockerfile-notebook \
136140
.
@@ -161,6 +165,7 @@ profiling-image: cluster-image
161165
docker buildx build \
162166
--build-arg BASE_IMAGE=${CLUSTER_IMAGE} \
163167
--load \
168+
--output type=docker \
164169
-t ${PROFILING_IMAGE} \
165170
-f ./Dockerfile-profiling \
166171
.
@@ -188,10 +193,10 @@ push-image: create-repo
188193
--username AWS \
189194
--password-stdin public.ecr.aws
190195
docker tag \
191-
${CLUSTER_IMAGE_NAME}:${DASK_VERSION} \
192-
$$(cat ./ecr-details.json | jq .'repository'.'repositoryUri' | tr -d '"'):${DASK_VERSION}
196+
${CLUSTER_IMAGE_NAME}:${IMAGE_TAG} \
197+
$$(cat ./ecr-details.json | jq .'repository'.'repositoryUri' | tr -d '"'):${IMAGE_TAG}
193198
docker push \
194-
$$(cat ./ecr-details.json | jq .'repository'.'repositoryUri' | tr -d '"'):${DASK_VERSION}
199+
$$(cat ./ecr-details.json | jq .'repository'.'repositoryUri' | tr -d '"'):${IMAGE_TAG}
195200

196201
.PHONY: start-notebook
197202
start-notebook:

0 commit comments

Comments
 (0)