Skip to content

Commit 27b50cf

Browse files
authored
Merge pull request #23 from BIOP/v0.1.4
modify Dockerfile-inkscape and Dockerfile-ms
2 parents 8f2a3f8 + 83671f5 commit 27b50cf

2 files changed

Lines changed: 60 additions & 21 deletions

File tree

docker/Dockerfile-ms

Lines changed: 35 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@ ARG EM_VERSION=1.1.0
1515
ARG STARDIST_VERSION=0.8.5
1616
ARG ABBA_VERSION=0.8.0-01
1717
ARG CELLPROFILER_VERSION=4.2.6
18-
ARG INKSCAPE_VERSION=0.1.0
18+
ARG INKSCAPE_VERSION=0.1.2
1919
ARG OMNI_VERSION=1.0.7-dev2
2020
ARG BRAINRENDER_VERSION=0.0.3
2121

22-
FROM ${ALIAS}biop-qupath:${QUPATH_VERSION} as qupath-image
23-
FROM ${ALIAS}biop-ilastik:${ILASTIK_VERSION} as ilastik-image
24-
FROM ${ALIAS}biop-fiji:${FIJI_VERSION} as fiji-image
25-
FROM ${ALIAS}biop-cellpose:${CELLPOSE_VERSION} as cellpose-image
26-
FROM ${ALIAS}biop-devbio:${DEVBIO_VERSION} as devbio-image
27-
FROM ${ALIAS}biop-samapi:${SAMAPI_VERSION} as samapi-image
28-
FROM ${ALIAS}biop-empanada:${EM_VERSION} as empanada-image
29-
FROM ${ALIAS}biop-stardist:${STARDIST_VERSION} as stardist-image
30-
FROM ${ALIAS}biop-abba:${ABBA_VERSION} as abba-image
31-
FROM ${ALIAS}biop-cellprofiler:${CELLPROFILER_VERSION} as cellprofiler-image
32-
FROM ${ALIAS}biop-inkscape:${INKSCAPE_VERSION} as inkscape-image
33-
FROM ${ALIAS}biop-omni:${OMNI_VERSION} as omnipose-image
34-
FROM ${ALIAS}biop-brainrender:${BRAINRENDER_VERSION} as brainrender-image
35-
36-
FROM ${ALIAS}biop-vnc-base:${BASE_IMAGE} as base
22+
FROM ${ALIAS}biop-qupath:${QUPATH_VERSION} AS qupath-image
23+
FROM ${ALIAS}biop-ilastik:${ILASTIK_VERSION} AS ilastik-image
24+
FROM ${ALIAS}biop-fiji:${FIJI_VERSION} AS fiji-image
25+
FROM ${ALIAS}biop-cellpose:${CELLPOSE_VERSION} AS cellpose-image
26+
FROM ${ALIAS}biop-devbio:${DEVBIO_VERSION} AS devbio-image
27+
FROM ${ALIAS}biop-samapi:${SAMAPI_VERSION} AS samapi-image
28+
FROM ${ALIAS}biop-empanada:${EM_VERSION} AS empanada-image
29+
FROM ${ALIAS}biop-stardist:${STARDIST_VERSION} AS stardist-image
30+
FROM ${ALIAS}biop-abba:${ABBA_VERSION} AS abba-image
31+
FROM ${ALIAS}biop-cellprofiler:${CELLPROFILER_VERSION} AS cellprofiler-image
32+
FROM ${ALIAS}biop-inkscape:${INKSCAPE_VERSION} AS inkscape-image
33+
FROM ${ALIAS}biop-omni:${OMNI_VERSION} AS omnipose-image
34+
FROM ${ALIAS}biop-brainrender:${BRAINRENDER_VERSION} AS brainrender-image
35+
36+
FROM ${ALIAS}biop-vnc-base:${BASE_IMAGE} AS base
3737

3838
USER root
3939

@@ -206,6 +206,23 @@ COPY --from=omnipose-image /opt/conda/envs/omnipose/ /opt/conda/envs/omnipose/
206206
# To make the different conda env available in jupyter
207207
COPY jupyter/kernels/ /home/biop/.local/share/jupyter/kernels/
208208

209+
210+
211+
#################################################################
212+
# TODO : put back with inkscape installation
213+
# replace inkscape from base with the one from the inkscape-image (newer)
214+
RUN sudo apt-get update -y \
215+
&& sudo apt-get install software-properties-common -y \
216+
&& sudo apt-get update -y \
217+
&& sudo add-apt-repository ppa:inkscape.dev/stable \
218+
&& sudo apt-get update -y \
219+
&& sudo apt-get install inkscape -y
220+
221+
# Install Inkscape extension
222+
# and the inkscape_modules environment
223+
# get a "docker: Error response from daemon: max depth exceeded."
224+
#COPY --from=inkscape-image /opt/conda/envs/inkscape_modules/ /opt/conda/envs/inkscape_modules/
225+
209226
#################################################################
210227
# final chown and chmod
211228
RUN chown -R biop:biop /home/biop/ \
@@ -214,8 +231,7 @@ RUN chown -R biop:biop /home/biop/ \
214231
#################################################################
215232
# Container start
216233
USER biop
234+
RUN conda init
217235
WORKDIR /home/biop
218236
ENTRYPOINT ["/usr/local/bin/jupyter"]
219-
CMD ["lab", "--allow-root", "--ip=*", "--port=8888", "--no-browser", "--NotebookApp.token=''", "--NotebookApp.allow_origin='*'", "--notebook-dir=/home/biop"]
220-
221-
237+
CMD ["lab", "--allow-root", "--ip=*", "--port=8888", "--no-browser", "--NotebookApp.token=''", "--NotebookApp.allow_origin='*'", "--notebook-dir=/home/biop"]

docker/inkscape/Dockerfile-inkscape

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ USER root
77
#################################################################
88
# Install Inkscape extension
99
RUN sudo apt-get update -y \
10+
&& sudo apt-get install software-properties-common -y \
11+
&& sudo apt-get update -y \
12+
&& sudo add-apt-repository ppa:inkscape.dev/stable \
13+
&& sudo apt-get update -y \
1014
&& sudo apt-get install inkscape -y
1115

1216
#################################################################
@@ -19,10 +23,29 @@ RUN unzip inkscape-imagej-panel-master.zip \
1923
&& rm -rf inkscape-imagej-panel-master/
2024

2125
#################################################################
22-
# Inkscape preferences with path to ImageJ, devbio conda env already set up
23-
# won't work ofr this image that does not have devbio nor Fiji
26+
# Inkscape preferences with path to ImageJ, inkscape conda env already set up
27+
# won't work ofr this image that does not have inkscape nor Fiji
2428
COPY inkscape/preferences.xml /home/biop/.config/inkscape/preferences.xml
2529

30+
31+
#################################################################
32+
# Install SimpInkScr extension
33+
# RUN cd $HOME/.config/inkscape/extensions/ && git clone https://github.com/spakin/SimpInkScr.git
34+
RUN wget https://github.com/spakin/SimpInkScr/releases/download/v5.0.0/simple_inkscape_scripting.zip
35+
RUN unzip simple_inkscape_scripting.zip \
36+
&& cp -r simple_inkscape_scripting/* /home/biop/.config/inkscape/extensions/ \
37+
&& rm -rf simple_inkscape_scripting.zip \
38+
&& rm -rf simple_inkscape_scripting/
39+
40+
##############################################################################
41+
# install inkscape_modules environment
42+
COPY inkscape/env_inkscape.yml /tmp/env_inkscape.yml
43+
RUN conda env update -n inkscape_modules -f /tmp/env_inkscape.yml \
44+
&& conda clean --all -f -y \
45+
&& conda env export -n "biop" \
46+
&& rm /tmp/env_inkscape.yml
47+
48+
2649
RUN chown -R biop:biop /home/biop/ \
2750
&& chmod -R a+rwx /home/biop/
2851

0 commit comments

Comments
 (0)