From bb6d6ef675fe360636809cc0300597f08b6e82d5 Mon Sep 17 00:00:00 2001 From: andersla Date: Mon, 14 Oct 2024 21:31:18 +0200 Subject: [PATCH] cleanup a little bit --- build-local-docker.sh | 15 ++++++++++----- docker/env.cuda.Dockerfile | 27 +++++++-------------------- requirements.txt | 1 - 3 files changed, 17 insertions(+), 26 deletions(-) diff --git a/build-local-docker.sh b/build-local-docker.sh index 8001c6a..fbb1098 100755 --- a/build-local-docker.sh +++ b/build-local-docker.sh @@ -9,13 +9,18 @@ image="pharmbio-notebook" echo "tensorflow_version=$tensorflow_version" echo "tag=$tag" echo "image=$image" -#switched to buildx build -# Build docker image for this container. -# docker buildx build --no-cache -t ghcr.io/pharmbio/$image:$tag \ -# --build-arg BASE_IMAGE=tensorflow/tensorflow:${tensorflow_version}-jupyter \ -# -f ./docker/env.cpu.Dockerfile . || exit 1 + +## CPU version +#DOCKER_BUILDKIT=1 docker buildx build --no-cache -t ghcr.io/pharmbio/$image:${tag} \ +# --build-arg BASE_IMAGE=tensorflow/tensorflow:${tensorflow_version}-jupyter \ +# -f docker/env.cuda.Dockerfile . || exit 1 + +# GPU version DOCKER_BUILDKIT=1 docker buildx build --no-cache -t ghcr.io/pharmbio/$image:${tag}-gpu \ --build-arg BASE_IMAGE=tensorflow/tensorflow:${tensorflow_version}-gpu-jupyter \ -f docker/env.cuda.Dockerfile . || exit 1 +echo Push image with command: +echo docker push "ghcr.io/pharmbio/$image:${tag}-gpu" + #docker push "ghcr.io/pharmbio/$image:$tag-devel" diff --git a/docker/env.cuda.Dockerfile b/docker/env.cuda.Dockerfile index 99cb734..6ff7cd9 100644 --- a/docker/env.cuda.Dockerfile +++ b/docker/env.cuda.Dockerfile @@ -15,10 +15,7 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone # Install base dependencies ENV DEBIAN_FRONTEND=noninteractive -# >apt_installs.txt to save instead of executing -RUN <