Skip to content

Commit

Permalink
Merge pull request #5 from ryanlovett/appendix
Browse files Browse the repository at this point in the history
Add repo2docker-action appendix.
  • Loading branch information
ryanlovett authored Sep 24, 2024
2 parents bdf094d + ddf4dbc commit 5deb1dd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-push-image-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
# so all contents put in /home/jovyan are lost. This particularly prevents any 'start' script from
# working, as it is needed in runtime.
REPO_DIR: /srv/repo
APPENDIX_FILE: Dockerfile.appendix

# Lets us monitor disks getting full as images get bigger over time
- name: Show how much disk space is left
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-test-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
FORCE_REPO2DOCKER_VERSION: jupyter-repo2docker==2024.07.0
REPO_DIR: /srv/repo
NO_PUSH: true
APPENDIX_FILE: Dockerfile.appendix

# Lets us monitor disks getting full as images get bigger over time
- name: Show how much disk space is left
Expand Down
11 changes: 11 additions & 0 deletions Dockerfile.appendix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
USER root

# As requested in slack.
# http://www.dcc.fc.up.pt/gtries/
# https://github.com/ComplexNetworks-DCC-FCUP/gtrieScanner
RUN wget -O /tmp/gtrieScanner.zip https://www.dcc.fc.up.pt/gtries/gtrieScanner_src_01.zip && \
unzip -d /tmp /tmp/gtrieScanner.zip && \
make -C /tmp/gtrieScanner_src_01 && \
install -o root -g root -m 0755 /tmp/gtrieScanner_src_01/gtrieScanner /usr/local/bin/

USER $NB_USER
12 changes: 0 additions & 12 deletions postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,3 @@ set -e
# installing chromium browser to enable webpdf conversion using nbconvert
export PLAYWRIGHT_BROWSERS_PATH=${CONDA_DIR}
playwright install chromium

# As requested in slack.
# http://www.dcc.fc.up.pt/gtries/
# https://github.com/ComplexNetworks-DCC-FCUP/gtrieScanner
cd /tmp
wget https://www.dcc.fc.up.pt/gtries/gtrieScanner_src_01.zip
unzip gtrieScanner_src_01.zip
cd gtrieScanner_src_01
make
# CONDA_DIR is writable by our UID in postBuild. Ideally this would be
# in /usr/local/bin/.
install -m 0755 gtrieScanner ${CONDA_DIR}/bin/

0 comments on commit 5deb1dd

Please sign in to comment.