Skip to content

Commit

Permalink
The workshop in the version held at MIFOBIO 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
CEDRICHK committed Oct 19, 2018
1 parent 9f7ab78 commit 6aa4042
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 67 deletions.
28 changes: 14 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,33 @@ COPY --chown=1000:100 docker/logo-32x32.png docker/logo-64x64.png .local/share/j
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
#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"
#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-omero.yml .setup/
RUN conda env update -n r-omero -q -f .setup/environment-r-omero.yml && \
/opt/conda/envs/r-omero/bin/Rscript -e "IRkernel::installspec(displayname='OMERO R')"
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/romero /opt/omero && \
fix-permissions /opt/romero /opt/omero
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"
#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?
Expand Down
35 changes: 0 additions & 35 deletions docker/environment-python2-cellprofiler.yml

This file was deleted.

9 changes: 8 additions & 1 deletion docker/environment-python2-omero.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: python2
channels:
- bioconda
- conda-forge
dependencies:
- python-omero
- python-omero=5.4.7
- pip=10.*
- scikit-image
- scipy
- matplotlib
- pip:
- centrosome
14 changes: 0 additions & 14 deletions docker/environment-r-omero.yml

This file was deleted.

11 changes: 11 additions & 0 deletions docker/environment-r.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
channels:
- bioconda
- conda-forge
- defaults
dependencies:
- r-base
- r-devtools
- r-irdisplay
- r-irkernel
- r-tidyverse
prefix: /opt/conda/envs/R
2 changes: 1 addition & 1 deletion exercises/02-Introduction_Omero_PartI.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.3"
"version": "2.7.14"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion exercises/06-cell_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.3"
"version": "2.7.14"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion exercises/07-statistical_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "OMERO R",
"display_name": "R",
"language": "R",
"name": "ir"
},
Expand Down

0 comments on commit 6aa4042

Please sign in to comment.