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

fastrack for testing jupytermachine versions

parent 47f233cc
Branches
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ build_and_push:
for image in "${IMAGES[@]}"; do
echo "$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}";
cd ../;
done
......@@ -27,10 +27,10 @@ create_jupytermachine_version:
stage: create_jupytermachine_version
image: docker:latest
script:
- IMAGES=( "tp" "python311" ) #"tp_herwig" "tp_geant" "cuda_basis"
- docker login -u jeppelt -p $DOCKER_TOKEN
- cd basis_jupytermachine
- |
IMAGES=( "basis" "tp" "python311" ) #"tp_herwig" "tp_geant" "cuda_basis"
docker login -u jeppelt -p $DOCKER_TOKEN
cd basis_jupytermachine
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}');
......@@ -42,5 +42,4 @@ create_jupytermachine_version:
docker push "$IMAGE_PREFIX/jupytermachine_${image}";
# Revert the Dockerfile to its original state for other iterations
sed -i "s/$NEW_BASE_IMAGE/$OLD_BASE_IMAGE/" "$DOCKERFILE_PATH/$JUPYTERMACHINE_DOCKERFILE";
cd ..;
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment