Skip to content
Snippets Groups Projects
Commit cd079403 authored by Jonas Eppelt's avatar Jonas Eppelt
Browse files

using no-cache to get updated packages at every new build

parent 14e5fef1
Branches
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ build_and_push: ...@@ -17,7 +17,7 @@ build_and_push:
for image in "${IMAGES[@]}"; do for image in "${IMAGES[@]}"; do
echo "$image"; echo "$image";
cd "$image"; cd "$image";
docker build -t "$IMAGE_PREFIX/etp_${image}" . ;#--no-cache; docker build -t "$IMAGE_PREFIX/etp_${image}" . --no-cache;
docker push "$IMAGE_PREFIX/etp_${image}"; docker push "$IMAGE_PREFIX/etp_${image}";
cd ../; cd ../;
done done
...@@ -41,7 +41,7 @@ create_jupytermachine_version: ...@@ -41,7 +41,7 @@ create_jupytermachine_version:
sed -i "s#$OLD_BASE_IMAGE#$NEW_BASE_IMAGE#" "Dockerfile" sed -i "s#$OLD_BASE_IMAGE#$NEW_BASE_IMAGE#" "Dockerfile"
cat Dockerfile; cat Dockerfile;
# Build the second version of the container # Build the second version of the container
docker build -t "$IMAGE_PREFIX/jupytermachine_${image}" -f "Dockerfile" .; docker build -t "$IMAGE_PREFIX/jupytermachine_${image}" -f "Dockerfile" . --no-cache;
docker push "$IMAGE_PREFIX/jupytermachine_${image}"; docker push "$IMAGE_PREFIX/jupytermachine_${image}";
# Revert the Dockerfile to its original state for other iterations # Revert the Dockerfile to its original state for other iterations
sed -i "s#$NEW_BASE_IMAGE#$OLD_BASE_IMAGE#" "Dockerfile" sed -i "s#$NEW_BASE_IMAGE#$OLD_BASE_IMAGE#" "Dockerfile"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment