This repository has been archived by the owner on Apr 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from NERSC/20-03
20 03
- Loading branch information
Showing
18 changed files
with
444 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ubuntu:16.04 | ||
FROM ubuntu:18.04 | ||
LABEL maintainer="Rollin Thomas <[email protected]>" | ||
|
||
# Base Ubuntu packages | ||
|
@@ -29,41 +29,47 @@ RUN \ | |
# Python 3 Miniconda and dependencies for JupyterHub we can get via conda | ||
|
||
RUN \ | ||
curl -s -o /tmp/miniconda3.sh https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \ | ||
curl -s -o /tmp/miniconda3.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \ | ||
bash /tmp/miniconda3.sh -b -p /opt/anaconda3 && \ | ||
rm -rf /tmp/miniconda3.sh && \ | ||
echo "python 3.7.3" >> /opt/anaconda3/conda-meta/pinned && \ | ||
/opt/anaconda3/bin/conda update --yes conda && \ | ||
/opt/anaconda3/bin/conda install --yes \ | ||
alembic \ | ||
cryptography \ | ||
decorator \ | ||
entrypoints \ | ||
jinja2 \ | ||
mako \ | ||
markupsafe \ | ||
nodejs \ | ||
oauthlib \ | ||
pamela \ | ||
psycopg2 \ | ||
pyopenssl \ | ||
python-dateutil \ | ||
python-editor \ | ||
sqlalchemy \ | ||
tornado \ | ||
traitlets | ||
alembic \ | ||
attrs \ | ||
certipy \ | ||
cryptography \ | ||
decorator \ | ||
entrypoints \ | ||
jinja2 \ | ||
jsonschema \ | ||
mako \ | ||
markupsafe \ | ||
more-itertools \ | ||
nodejs \ | ||
oauthlib \ | ||
pamela \ | ||
psycopg2 \ | ||
pyopenssl \ | ||
pyrsistent \ | ||
python-dateutil \ | ||
python-editor \ | ||
ruamel.yaml \ | ||
ruamel.yaml.clib \ | ||
sqlalchemy \ | ||
tornado \ | ||
traitlets \ | ||
zipp | ||
|
||
# Install JupyterHub | ||
|
||
ENV PATH=/opt/anaconda3/bin:$PATH | ||
WORKDIR /tmp | ||
RUN \ | ||
npm install -g configurable-http-proxy && \ | ||
# git clone https://github.com/jupyterhub/jupyterhub.git && \ | ||
git clone https://github.com/rcthomas/jupyterhub.git && \ | ||
git clone https://github.com/jupyterhub/jupyterhub.git && \ | ||
cd jupyterhub && \ | ||
# git checkout tags/1.0.0 && \ | ||
git checkout auth-state-to-spawner && \ | ||
git checkout tags/1.1.0 && \ | ||
/opt/anaconda3/bin/python setup.py js && \ | ||
/opt/anaconda3/bin/pip --no-cache-dir install . && \ | ||
cp examples/cull-idle/cull_idle_servers.py /opt/anaconda3/bin/. && \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
#!/bin/bash | ||
|
||
imcmd="" | ||
for command in docker podman; do | ||
if [ $(command -v $command) ]; then | ||
imcmd=$command | ||
break | ||
fi | ||
done | ||
if [ -n "$imcmd" ]; then | ||
echo "Using $imcmd" | ||
else | ||
echo "No image command defined" | ||
exit 1 | ||
fi | ||
|
||
branch=$(git symbolic-ref --short HEAD) | ||
|
||
docker build \ | ||
--no-cache \ | ||
$imcmd build \ | ||
"$@" \ | ||
--tag registry.spin.nersc.gov/das/jupyter-base-$branch:latest . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ubuntu:16.04 | ||
FROM ubuntu:18.04 | ||
LABEL maintainer="Rollin Thomas <[email protected]>" | ||
|
||
# Base Ubuntu packages | ||
|
@@ -25,10 +25,10 @@ RUN \ | |
# Python 3 Miniconda | ||
|
||
RUN \ | ||
curl -s -o /tmp/miniconda3.sh https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \ | ||
curl -s -o /tmp/miniconda3.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \ | ||
bash /tmp/miniconda3.sh -f -b -p /opt/anaconda3 && \ | ||
rm -rf /tmp/miniconda3.sh && \ | ||
# /opt/anaconda3/bin/conda update --yes conda && \ | ||
/opt/anaconda3/bin/conda update --yes conda && \ | ||
/opt/anaconda3/bin/pip install --no-cache-dir \ | ||
pika | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ FROM registry.spin.nersc.gov/das/jupyter-base-${branch}:latest | |
LABEL maintainer="Rollin Thomas <[email protected]>" | ||
|
||
RUN \ | ||
pip install git+https://github.com/rcthomas/jupyterhub-announcement.git@0.3.1 | ||
pip install git+https://github.com/rcthomas/jupyterhub-announcement.git@0.4.1 | ||
|
||
WORKDIR /srv | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,22 @@ | ||
#!/bin/bash | ||
|
||
imcmd="" | ||
for command in docker podman; do | ||
if [ $(command -v $command) ]; then | ||
imcmd=$command | ||
break | ||
fi | ||
done | ||
if [ -n "$imcmd" ]; then | ||
echo "Using $imcmd" | ||
else | ||
echo "No image command defined" | ||
exit 1 | ||
fi | ||
|
||
branch=$(git symbolic-ref --short HEAD) | ||
|
||
docker build \ | ||
$imcmd build \ | ||
--build-arg branch=$branch \ | ||
"$@" \ | ||
--tag registry.spin.nersc.gov/das/web-jupyterhub.jupyter-nersc-$branch:latest . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.