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 #79 from NERSC/20-08
20 08
- Loading branch information
Showing
17 changed files
with
246 additions
and
48 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
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 |
---|---|---|
|
@@ -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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,27 @@ | ||
#!/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 | ||
|
||
format="" | ||
if [ "$imcmd" == "podman" ]; then | ||
format="--format docker" | ||
fi | ||
|
||
branch=$(git symbolic-ref --short HEAD) | ||
|
||
docker build \ | ||
$imcmd build \ | ||
$format \ | ||
"$@" \ | ||
--tag registry.spin.nersc.gov/das/app-monitoring.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
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 \ | ||
podman build \ | ||
--build-arg branch=$branch \ | ||
"$@" \ | ||
--tag registry.spin.nersc.gov/das/app-notebooks.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ FROM registry.spin.nersc.gov/das/jupyter-base-${branch}:latest | |
LABEL maintainer="Rollin Thomas <[email protected]>" | ||
|
||
RUN \ | ||
pip install git+https://github.com/rcthomas/[email protected] | ||
pip install --no-cache-dir html_sanitizer && \ | ||
pip install git+https://github.com/rcthomas/[email protected] | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,28 @@ | ||
#!/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 | ||
|
||
format="" | ||
if [ "$imcmd" == "podman" ]; then | ||
format="--format docker" | ||
fi | ||
|
||
branch=$(git symbolic-ref --short HEAD) | ||
|
||
docker build \ | ||
$imcmd build \ | ||
--build-arg branch=$branch \ | ||
$format \ | ||
"$@" \ | ||
--tag registry.spin.nersc.gov/das/web-announcement.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
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
Oops, something went wrong.