Skip to content

Commit bc22cea

Browse files
committed
added dockerfile for CyVerse/VICE
1 parent 0f82596 commit bc22cea

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

vice/Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Dockerfile to install ten-rules-jupyter on Cyverse/VICE
2+
FROM discoenv/jupyter-lab:beta
3+
4+
USER root
5+
6+
# Update the packages
7+
RUN apt-get update \
8+
&& apt-get clean \
9+
&& rm -rf /usr/lib/apt/lists/*
10+
11+
USER jovyan
12+
13+
WORKDIR /home/jovyan
14+
15+
# Clone repository
16+
RUN git clone https://github.com/jupyter-guide/ten-rules-jupyter
17+
18+
# Install dependencies
19+
RUN pip install -r ./ten-rules-jupyter/requirements.txt
20+
21+
COPY entry.sh /bin
22+
RUN mkdir /home/jovyan/.irods
23+
24+
ENTRYPOINT ["/bin/entry.sh"]

vice/entry.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
echo '{"irods_host": "data.cyverse.org", "irods_port": 1247, "irods_user_name": "anonymous", "irods_zone_name": "iplant"}' | envsubst > $HOME/.irods/irods_environment.json
4+
5+
cd $HOME/vice
6+
mv $HOME/ten-rules-jupyter $HOME/vice/
7+
8+
echo '{"irods_host": "data.cyverse.org", "irods_port": 1247, "irods_user_name": "$IPLANT_USER", "irods_zone_name": "iplant"}' | envsubst > $HOME/.irods/irods_environment.json
9+
10+
exec jupyter lab --no-browser

0 commit comments

Comments
 (0)