diff --git a/.inputrc b/.inputrc index 42837ce..7b371c1 100644 --- a/.inputrc +++ b/.inputrc @@ -97,3 +97,9 @@ set enable-bracketed-paste set enable-bracketed-paste set enable-bracketed-paste set enable-bracketed-paste +set enable-bracketed-paste +set enable-bracketed-paste +set enable-bracketed-paste +set enable-bracketed-paste +set enable-bracketed-paste +set enable-bracketed-paste diff --git a/build-local-docker.sh b/build-local-docker.sh index 5f5d111..8001c6a 100755 --- a/build-local-docker.sh +++ b/build-local-docker.sh @@ -9,15 +9,13 @@ image="pharmbio-notebook" echo "tensorflow_version=$tensorflow_version" echo "tag=$tag" echo "image=$image" -#switch to buildx build +#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 \ -# --build-arg FRAMEWORK=cpu \ -# -f ./docker/env.Dockerfile . || exit 1 -docker buildx build --no-cache -t ghcr.io/pharmbio/$image:${tag}-gpu \ +# -f ./docker/env.cpu.Dockerfile . || exit 1 +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 \ - --build-arg FRAMEWORK=cuda \ - -f docker/env.Dockerfile . || exit 1 + -f docker/env.cuda.Dockerfile . || exit 1 #docker push "ghcr.io/pharmbio/$image:$tag-devel" diff --git a/docker/env.Dockerfile b/docker/env.cpu.Dockerfile similarity index 65% rename from docker/env.Dockerfile rename to docker/env.cpu.Dockerfile index 8834b08..2916ded 100644 --- a/docker/env.Dockerfile +++ b/docker/env.cpu.Dockerfile @@ -60,29 +60,13 @@ RUN python3 -m pip install --no-cache-dir --upgrade pip && \ python3 -m pip install --no-cache-dir -r requirements.txt # Conditional install based on FRAMEWORK argument -RUN < /etc/timezone + +# Install base dependencies +ENV DEBIAN_FRONTEND=noninteractive +# >apt_installs.txt to save instead of executing +RUN <> /etc/sudoers + +# Set ownership for directories jovyan might need to modify +RUN chown jovyan /opt/ + +# Final user and work directory setup +USER jovyan +WORKDIR /home/jovyan + +# +# The entrypoint will first copy /pharmbio/ files to user home +# This is because /home/jovyan will be mountpoint for persistent volume +# and all contents that is there already in this image will be masqued with +# persistent volume contents +# Then the entrypoint will start jupyter notebook server +# +COPY entrypoint.sh / +CMD /entrypoint.sh \ No newline at end of file