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

bugfix

parent 88f6de97
Branches
No related tags found
No related merge requests found
......@@ -31,13 +31,12 @@ create_jupytermachine_version:
IMAGES=( "basis" "tp" "python311" ) #"tp_herwig" "tp_geant" "cuda_basis"
docker login -u jeppelt -p $DOCKER_TOKEN
cd basis_jupytermachine
ls
for image in "${IMAGES[@]}"; do
# Read the existing base image from the Dockerfile
OLD_BASE_IMAGE=$(grep -E '^\s*FROM\s+.*' Dockerfile | awk '{print $2}');
echo $OLD_BASE_IMAGE
# 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
sed -i "s/$OLD_BASE_IMAGE/$NEW_BASE_IMAGE/" "Dockerfile";
cat Dockerfile
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment