hardcopy content of .build at once

This commit is contained in:
Christoph Schranz 2020-02-22 18:56:54 +01:00
parent d4b4e66228
commit 923eaf0f8e

View File

@ -15,7 +15,6 @@ 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/
cp src/jupyter_notebook_config.json .
echo " echo "
############################################################################ ############################################################################
@ -24,19 +23,13 @@ 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
# copy files that are used during the build in two directories: # 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/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/
cp $STACKS_DIR/base-notebook/jupyter_notebook_config.py .
cp $STACKS_DIR/base-notebook/fix-permissions .
cp $STACKS_DIR/base-notebook/start.sh .
cp $STACKS_DIR/base-notebook/start-notebook.sh .
cp $STACKS_DIR/base-notebook/start-singleuser.sh .
echo " echo "
############################################################################ ############################################################################
################# Dependency: jupyter/minimal-notebook ##################### ################# Dependency: jupyter/minimal-notebook #####################
@ -82,6 +75,8 @@ echo "
" >> $DOCKERFILE " >> $DOCKERFILE
cat src/Dockerfile.usefulpackages >> $DOCKERFILE cat src/Dockerfile.usefulpackages >> $DOCKERFILE
cp $DOCKERFILE Dockerfile # Copy the content from the build directory to .
echo "GPU Dockerfile was generated sucessfully in file $(pwd)/${DOCKERFILE} and copied to ./Dockerfile" cp $(find $(dirname $DOCKERFILE) -type f | grep -v $STACKS_DIR | grep -v .gitkeep) .
echo "GPU Dockerfile was generated sucessfully in file ${DOCKERFILE} and copied with build files to $(pwd)"
echo "Run 'bash run_Dockerfile.sh -p [PORT]' to start the GPU-based Juyterlab instance." echo "Run 'bash run_Dockerfile.sh -p [PORT]' to start the GPU-based Juyterlab instance."