Skip to content

Commit b64de25

Browse files
committed
user is qiime2 in luke's image
1 parent 3b2e4b1 commit b64de25

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

images/aomlomics-jh/Dockerfile

+6-14
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
FROM docker.io/aomlomics/tourmaline:latest
22

3-
USER root
4-
ENV NB_USER=jovyan \
5-
NB_UID=1000
3+
ENV NB_USER=qiime2 \
4+
NB_UID=1000 \
5+
CONDA_DIR=/opt/conda
66
ENV HOME=/home/${NB_USER}
77

8-
RUN echo "Creating ${NB_USER} user..." \
9-
# Create a group for the user to be part of, with gid same as uid
10-
&& groupadd --gid ${NB_UID} ${NB_USER} \
11-
# Create non-root user, with given gid, uid and create $HOME
12-
&& useradd --create-home --gid ${NB_UID} --no-log-init --uid ${NB_UID} ${NB_USER} \
13-
# Make sure that /srv is owned by non-root user, so we can install things there
14-
&& chown -R ${NB_USER}:${NB_USER} /srv
8+
USER ${NB_USER}
159

1610
# add the packages needed for jupyterhubs to the base environment
1711
COPY jhub-environment.yml jhub-environment.yml
@@ -22,9 +16,7 @@ RUN conda install --name snakemake ipykernel && conda clean --all
2216
RUN conda install --name qiime2-2023.5 ipykernel && conda clean --all
2317

2418
# Register the kernels so you can open in notebooks
25-
RUN python -m ipykernel install --prefix /srv/conda/envs/snakemake --name snakemake --display-name snakemake
26-
RUN python -m ipykernel install --prefix /srv/conda/envs/qiime2-2023.5 --name qiime2-2023.5 --display-name qiime2
27-
USER ${NB_USER}
19+
RUN python -m ipykernel install --prefix ${CONDA_DIR}/envs/snakemake --name snakemake --display-name snakemake
20+
RUN python -m ipykernel install --prefix ${CONDA_DIR}/envs/qiime2-2023.5 --name qiime2-2023.5 --display-name qiime2
2821

29-
USER ${NB_USER}
3022
WORKDIR /home/${NB_USER}

0 commit comments

Comments
 (0)