-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (42 loc) · 2.14 KB
/
Dockerfile
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
50
FROM imagedata/jupyter-docker:0.8.1
MAINTAINER [email protected]
# create a python2 environment (for OMERO-PY compatibility)
ADD docker/environment-python2-omero.yml .setup/
RUN conda env update -n python2 -q -f .setup/environment-python2-omero.yml
COPY --chown=1000:100 docker/logo-32x32.png docker/logo-64x64.png .local/share/jupyter/kernels/python2/
COPY --chown=1000:100 docker/python2-kernel.json .local/share/jupyter/kernels/python2/kernel.json
# Cell Profiler (add to the Python2 environment)
#ADD docker/environment-python2-cellprofiler.yml .setup/
#RUN conda env update -n python2 -q -f .setup/environment-python2-cellprofiler.yml
# CellProfiler has to be installed in a separate step because it requires
# the JAVA_HOME environment variable set in the updated environment
#ARG CELLPROFILER_VERSION=v3.1.3
#RUN bash -c "source activate python2 && pip install git+https://github.com/CellProfiler/CellProfiler.git@$CELLPROFILER_VERSION"
# R-kernel and R-OMERO prerequisites
ADD docker/environment-r.yml .setup/
RUN conda env update -n R -q -f .setup/environment-r.yml && \
/opt/conda/envs/R/bin/Rscript -e "IRkernel::installspec(displayname='R')"
USER root
RUN mkdir /opt/R /opt/omero && \
fix-permissions /opt/R /opt/omero
# R requires these two packages at runtime
RUN apt-get install -y -q \
libxrender1 \
libsm6
USER $NB_UID
# install rOMERO
#ENV _JAVA_OPTIONS="-Xss2560k -Xmx2g"
#ARG ROMERO_VERSION=v0.4.2
#RUN cd /opt/romero && \
# curl -sf https://raw.githubusercontent.com/ome/rOMERO-gateway/$ROMERO_VERSION/install.R --output install.R && \
# bash -c "source activate r-omero && Rscript install.R --version=$ROMERO_VERSION --quiet"
# OMERO full CLI
# This currently uses the python2 environment, should we move it to its own?
ARG OMERO_VERSION=5.4.7
RUN cd /opt/omero && \
/opt/conda/envs/python2/bin/pip install -q omego && \
/opt/conda/envs/python2/bin/omego download -q --sym OMERO.server server --release $OMERO_VERSION && \
rm OMERO.server-*.zip
ADD docker/omero-bin.sh /usr/local/bin/omero
# Clone the source git repo into notebooks (keep this at the end of the file)
COPY --chown=1000:100 . mifobio_2018