Commit Julia's s2i assemble files!
They were accidentally ignored by the .gitignore!
MODIFY
.gitignore
.gitignore
@@ -9,7 +9,7 @@ MANIFEST
repo2docker/s2i
-bin/
+^bin/
lib/
share/
include/

MODIFY
repo2docker/detectors.py
repo2docker/detectors.py
@@ -139,7 +139,7 @@ class CondaBuildPack(S2IBuildPack):
class JuliaBuildPack(S2IBuildPack):
name = Unicode('julia')
- build_image = Unicode('jupyterhub/singleuser-builder-julia:v0.2.2', config=True)
+ build_image = Unicode('jupyterhub/singleuser-builder-julia:v0.2.3', config=True)
def detect(self, workdir):
return os.path.exists(os.path.join(workdir, 'REQUIRE'))

ADD
s2i-builders/julia/s2i/bin/assemble
+#!/bin/bash -e
+#
+# S2I assemble script for the jupyterhub/singleuser-builder image.
+# The 'assemble' script builds your application source so that it is ready to run.
+#
+# For more information refer to the documentation:
+# https://github.com/openshift/source-to-image/blob/master/docs/builder_image.md
+#
+
+if [[ "$1" == "-h" ]]; then
+ exec /usr/libexec/s2i/usage
+fi
+
+# Restore artifacts from the previous build (if they exist).
+#
+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/REQUIRE ]; then
+ cat ${APP_DIR}/src/REQUIRE >> $JULIA_PKGDIR/v0.6/REQUIRE
+ julia -e "Pkg.resolve()"
+fi

ADD
s2i-builders/julia/s2i/bin/run
+#!/bin/bash -e
+#
+# S2I run script for the 'ubuntu1610-python35-venv' image.
+# The run script executes the server that runs your application.
+#
+# For more information see the documentation:
+# https://github.com/openshift/source-to-image/blob/master/docs/builder_image.md
+#
+
+exec ${APP_DIR}/venv/bin/jupyter notebook --ip=0.0.0.0

ADD
s2i-builders/julia/s2i/bin/save-artifacts
+#!/bin/sh -e
+#
+# S2I save-artifacts script for the 'ubuntu1610-python35-venv' image.
+# The save-artifacts script streams a tar archive to standard output.
+# The archive contains the files and folders you want to re-use in the next build.
+#
+# For more information see the documentation:
+# https://github.com/openshift/source-to-image/blob/master/docs/builder_image.md
+#
+# tar cf - <list of files and folders>

ADD
s2i-builders/julia/s2i/bin/usage
+#!/bin/bash -e
+cat <<EOF
+This is the ubuntu1610-python35-venv S2I image:
+To use it, install S2I: https://github.com/openshift/source-to-image
+
+Sample invocation:
+
+s2i build <source code path/URL> ubuntu1610-python35-venv <application image>
+
+You can then run the resulting image via:
+docker run <application image>
+EOF

MODIFY
s2i-builders/julia/version
s2i-builders/julia/version
-v0.2.2
+v0.2.3

MODIFY
setup.py
setup.py
@@ -92,7 +92,7 @@ else:
setup(
name='jupyter-repo2docker',
- version='0.2.9',
+ version='0.2.10',
install_requires=[
'docker',
'traitlets',

Commit Julia's s2i assemble files!

They were accidentally ignored by the .gitignore!