create softlinks for build during generation

This commit is contained in:
Christoph Schranz 2020-02-22 15:10:11 +01:00
parent 5463253721
commit 7286055851
7 changed files with 17 additions and 1 deletions

1
fix-permissions Symbolic link
View File

@ -0,0 +1 @@
.build/fix-permissions

View File

@ -15,6 +15,7 @@ cd $STACKS_DIR && git pull && cd -
# Write the contents into the DOCKERFILE and start with the header # Write the contents into the DOCKERFILE and start with the header
cat src/Dockerfile.header > $DOCKERFILE cat src/Dockerfile.header > $DOCKERFILE
cp src/jupyter_notebook_config.json .build/ cp src/jupyter_notebook_config.json .build/
ln -sf .build/jupyter_notebook_config.json jupyter_notebook_config.json
echo " echo "
############################################################################ ############################################################################
@ -22,12 +23,21 @@ echo "
############################################################################ ############################################################################
" >> $DOCKERFILE " >> $DOCKERFILE
cat $STACKS_DIR/base-notebook/Dockerfile | grep -v BASE_CONTAINER >> $DOCKERFILE cat $STACKS_DIR/base-notebook/Dockerfile | grep -v BASE_CONTAINER >> $DOCKERFILE
cp $STACKS_DIR/base-notebook/fix-permissions .build/
# copy files that are used during the build
cp $STACKS_DIR/base-notebook/jupyter_notebook_config.py .build/ cp $STACKS_DIR/base-notebook/jupyter_notebook_config.py .build/
cp $STACKS_DIR/base-notebook/fix-permissions .build/
cp $STACKS_DIR/base-notebook/start.sh .build/ cp $STACKS_DIR/base-notebook/start.sh .build/
cp $STACKS_DIR/base-notebook/start-notebook.sh .build/ cp $STACKS_DIR/base-notebook/start-notebook.sh .build/
cp $STACKS_DIR/base-notebook/start-singleuser.sh .build/ cp $STACKS_DIR/base-notebook/start-singleuser.sh .build/
# create softlinks for files used during the build
ln -sf .build/jupyter_notebook_config.py jupyter_notebook_config.py
ln -sf .build/fix-permissions fix-permissions
ln -sf .build/start.sh start.sh
ln -sf .build/start-notebook.sh start-notebook.sh
ln -sf .build/start-singleuser.sh start-singleuser.sh
echo " echo "
############################################################################ ############################################################################
################# Dependency: jupyter/minimal-notebook ##################### ################# Dependency: jupyter/minimal-notebook #####################

View File

@ -0,0 +1 @@
.build/jupyter_notebook_config.json

1
jupyter_notebook_config.py Symbolic link
View File

@ -0,0 +1 @@
.build/jupyter_notebook_config.py

1
start-notebook.sh Symbolic link
View File

@ -0,0 +1 @@
.build/start-notebook.sh

1
start-singleuser.sh Symbolic link
View File

@ -0,0 +1 @@
.build/start-singleuser.sh

1
start.sh Symbolic link
View File

@ -0,0 +1 @@
.build/start.sh