kopia lustrzana https://github.com/jupyterhub/repo2docker
Commit Julia's s2i assemble files!
They were accidentally ignored by the .gitignore!pull/27/merge
rodzic
7146ae3c52
commit
a8ac7f26ff
|
@ -9,7 +9,7 @@ MANIFEST
|
||||||
|
|
||||||
repo2docker/s2i
|
repo2docker/s2i
|
||||||
|
|
||||||
bin/
|
^bin/
|
||||||
lib/
|
lib/
|
||||||
share/
|
share/
|
||||||
include/
|
include/
|
||||||
|
|
|
@ -139,7 +139,7 @@ class CondaBuildPack(S2IBuildPack):
|
||||||
|
|
||||||
class JuliaBuildPack(S2IBuildPack):
|
class JuliaBuildPack(S2IBuildPack):
|
||||||
name = Unicode('julia')
|
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):
|
def detect(self, workdir):
|
||||||
return os.path.exists(os.path.join(workdir, 'REQUIRE'))
|
return os.path.exists(os.path.join(workdir, 'REQUIRE'))
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
#!/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
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/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
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/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>
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/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
|
|
@ -1 +1 @@
|
||||||
v0.2.2
|
v0.2.3
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -92,7 +92,7 @@ else:
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='jupyter-repo2docker',
|
name='jupyter-repo2docker',
|
||||||
version='0.2.9',
|
version='0.2.10',
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'docker',
|
'docker',
|
||||||
'traitlets',
|
'traitlets',
|
||||||
|
|
Ładowanie…
Reference in New Issue