Skip to content

Commit

Permalink
safer directory switching
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl authored Nov 28, 2023
1 parent fcce2b8 commit d4f0793
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions jupyterhub/build_docker_stacks.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/usr/bin/env bash
set -exuo pipefail

pushd "$(dirname "${BASH_SOURCE[0]}")"
git submodule update --init --recursive
pushd $(dirname "$0")/docker-stacks/images/docker-stacks-foundation

cd docker-stacks/images/docker-stacks-foundation
docker build --build-arg PYTHON_VERSION=3.9 --build-arg BASE_CONTAINER=nvidia/cuda:11.7.1-cudnn8-runtime-ubuntu22.04 -t synerbi/jupyter:foundation .

cd ../base-notebook
Expand All @@ -19,6 +20,7 @@ docker build --build-arg BASE_CONTAINER=synerbi/jupyter:minimal -t synerbi/jupyt
cd ../datascience-notebook
docker build --build-arg BASE_CONTAINER=synerbi/jupyter:scipy -t synerbi/jupyter:datascience .

popd

cd ..
docker build --build-arg BASE_CONTAINER=synerbi/jupyter:datascience -t synerbi/jupyter:sirf -f jupyterhub/Dockerfile .

popd

0 comments on commit d4f0793

Please sign in to comment.