From acadff0d5b4cc38277cf753f3e66caf119c0b83b Mon Sep 17 00:00:00 2001 From: yuvipanda Date: Tue, 18 Apr 2017 23:36:45 -0700 Subject: [PATCH] Copy github source into to working directory too This is a hack to make sure that binder-like workflows work ok --- singleuser-builder/s2i/bin/assemble | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/singleuser-builder/s2i/bin/assemble b/singleuser-builder/s2i/bin/assemble index f14f8200..0876d6d5 100755 --- a/singleuser-builder/s2i/bin/assemble +++ b/singleuser-builder/s2i/bin/assemble @@ -17,6 +17,10 @@ echo "---> Installing application source..." mkdir -p ${APP_DIR}/src cp -Rf /tmp/src/. ${APP_DIR}/src +# HACK: We copy it to current directory too, since people wanna see the +# notebooks and stuff in there. Figure out a way to tweak this? +cp -Rf /tmp/src/. . + echo "---> Building application from source..." if [ -f ${APP_DIR}/src/requirements.txt ]; then ${APP_DIR}/venv/bin/pip install --no-cache-dir -r ${APP_DIR}/src/requirements.txt