generated from berkeley-dsep-infra/hub-user-image-template
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile.appendix
28 lines (23 loc) · 1.1 KB
/
Dockerfile.appendix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
USER root
# xeus-octave complains when XDG_RUNTIME_DIR is not set.
# We could dynamically determine the UID, use /run/user/${UID} as in systemd,
# then set it in a shell initialization file, but we'd be essentially
# hard-coding the shell.
ENV XDG_RUNTIME_DIR=/tmp/xdg-runtime-dir
RUN install -d -m 0700 -o ${NB_USER} -g ${NB_USER} ${XDG_RUNTIME_DIR}
# 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/
# Install octave-networks-toolbox
RUN git clone https://github.com/aeolianine/octave-networks-toolbox \
/srv/octave-networks-toolbox && \
cd /srv/octave-networks-toolbox/ && \
git checkout 3bfab48
# Add octave-networks-toolbox to octave path
RUN echo "addpath('/srv/octave-networks-toolbox')" >> \
/srv/conda/envs/notebook/share/octave/site/m/startup/octaverc
USER $NB_USER