create softlinks for build during generation
This commit is contained in:
parent
5463253721
commit
7286055851
1
fix-permissions
Symbolic link
1
fix-permissions
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
.build/fix-permissions
|
@ -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 #####################
|
||||||
|
1
jupyter_notebook_config.json
Symbolic link
1
jupyter_notebook_config.json
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
.build/jupyter_notebook_config.json
|
1
jupyter_notebook_config.py
Symbolic link
1
jupyter_notebook_config.py
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
.build/jupyter_notebook_config.py
|
1
start-notebook.sh
Symbolic link
1
start-notebook.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
.build/start-notebook.sh
|
1
start-singleuser.sh
Symbolic link
1
start-singleuser.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
.build/start-singleuser.sh
|
Loading…
Reference in New Issue
Block a user