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

bugfix

parent 7549437b
Branches
No related tags found
No related merge requests found
...@@ -34,12 +34,12 @@ create_jupytermachine_version: ...@@ -34,12 +34,12 @@ create_jupytermachine_version:
for image in "${IMAGES[@]}"; do for image in "${IMAGES[@]}"; do
# Read the existing base image from the Dockerfile # Read the existing base image from the Dockerfile
OLD_BASE_IMAGE=$(grep -E '^\s*FROM\s+.*' Dockerfile | awk '{print $2}'); OLD_BASE_IMAGE=$(grep -E '^\s*FROM\s+.*' Dockerfile | awk '{print $2}');
echo $OLD_BASE_IMAGE echo $OLD_BASE_IMAGE;
# Replace "basic_jupytermachine" with the new base image name # Replace "basic_jupytermachine" with the new base image name
NEW_BASE_IMAGE=$(IMAGE_PREFIX/etp_${image}); NEW_BASE_IMAGE=$IMAGE_PREFIX/etp_$image;
echo $NEW_BASE_IMAGE echo $NEW_BASE_IMAGE;
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" .;
docker push "$IMAGE_PREFIX/jupytermachine_${image}"; docker push "$IMAGE_PREFIX/jupytermachine_${image}";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment