-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile.workshop
More file actions
49 lines (36 loc) · 1.33 KB
/
Dockerfile.workshop
File metadata and controls
49 lines (36 loc) · 1.33 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
ARG EPOCH
ARG DISTRO
FROM quay.io/qiime2/${DISTRO}:${EPOCH}
ARG EPOCH
ARG DISTRO
ENV HOME /home/qiime2
ENV XDG_CONFIG_HOME /home/qiime2
RUN mkdir /home/qiime2
WORKDIR /home/qiime2
RUN echo "source activate rachis-${DISTRO}-${EPOCH}" >> $HOME/.bashrc
RUN echo "source tab-qiime" >> $HOME/.bashrc
# Important: let any UID modify these directories so that
# `docker run -u UID:GID` works
RUN chmod -R a+rwx /home/qiime2
# update cli prompt to print working directory
RUN echo "export PS1=\"\nCurrent working directory: \\w\n\\$ \"" >> $HOME/.bashrc
# declare that a volume will be mounted to the working directory
VOLUME "/home/qiime2"
# make default jupyter shell be bash
ENV SHELL /bin/bash
# install various useful tools
RUN apt-get update
RUN yes | apt-get install tree vim iputils-ping nano less nodejs npm
# install jupyter lab, configure notebooks for displaying
RUN pip install jupyterlab
# pretty sure this is no longer necessary, commenting out for the time being
# RUN jupyter serverextension enable --py qiime2 --sys-prefix
# TODO: add to environment for 2026.7 release?
RUN pip install https://github.com/rachis-org/jupyterlab-rachis/archive/refs/heads/main.zip
# launch jupyter lab on startup
CMD ["jupyter", "lab", \
"--ip=0.0.0.0", \
"--port=8888", \
"--no-browser", \
"--allow-root", \
"--NotebookApp.token=''"]