Skip to content

Commit

Permalink
safer directory switching
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Nov 28, 2023
1 parent fcce2b8 commit 410d7ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion jupyterhub/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
ARG BASE_CONTAINER=nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04
FROM ${BASE_IMAGE} as base
FROM ${BASE_CONTAINER} as base

# Make sure the image has the same libraries as the standard SIRF docker image
# Add to the docker image the appropriate stuff
Expand Down
9 changes: 5 additions & 4 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 @@ -12,13 +13,13 @@ docker build --build-arg BASE_CONTAINER=synerbi/jupyter:foundation -t synerbi/ju
cd ../minimal-notebook
docker build --build-arg BASE_CONTAINER=synerbi/jupyter:base -t synerbi/jupyter:minimal .


cd ../scipy-notebook
docker build --build-arg BASE_CONTAINER=synerbi/jupyter:minimal -t synerbi/jupyter:scipy .

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 410d7ac

Please sign in to comment.