Skip to content

Commit

Permalink
Merge pull request #362 from DigitalSlideArchive/docker-steps
Browse files Browse the repository at this point in the history
Reduce the number of layers in the common docker file
  • Loading branch information
manthey authored Sep 24, 2024
2 parents ec92377 + f1bdca2 commit 415511a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
38 changes: 19 additions & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,36 +58,36 @@ RUN cd /opt && \
git clone https://github.com/girder/girder && \
cd /opt/girder && \
pip install --no-cache-dir -e .[mount] && \
pip install --no-cache-dir -e clients/python

RUN cd /opt && \
pip install --no-cache-dir -e clients/python && \
\
cd /opt && \
git clone https://github.com/girder/girder_worker_utils && \
cd /opt/girder_worker_utils && \
pip install --no-cache-dir -e .

RUN cd /opt && \
pip install --no-cache-dir -e . && \
\
cd /opt && \
git clone https://github.com/girder/girder_worker && \
cd /opt/girder_worker && \
pip install --no-cache-dir -e .[girder,worker]

RUN cd /opt && \
pip install --no-cache-dir -e .[girder,worker] && \
\
cd /opt && \
git clone https://github.com/DigitalSlideArchive/import-tracker.git && \
cd /opt/import-tracker && \
pip install --no-cache-dir -e .

RUN cd /opt && \
pip install --no-cache-dir -e . && \
\
cd /opt && \
git clone https://github.com/girder/slicer_cli_web && \
cd /opt/slicer_cli_web && \
pip install --no-cache-dir -e .

RUN cd /opt && \
pip install --no-cache-dir -e . && \
\
cd /opt && \
git clone https://github.com/girder/large_image && \
cd /opt/large_image && \
pip install --no-cache-dir --find-links https://girder.github.io/large_image_wheels -e .[memcached] -rrequirements-dev.txt && \
# Reduice docker size by de-duplicating some libraries that get installed \
rdfind -minsize 32768 -makehardlinks true -makeresultsfile false /opt/venv

RUN cd /opt && \
# Reduce docker size by de-duplicating some libraries that get installed \
rdfind -minsize 32768 -makehardlinks true -makeresultsfile false /opt/venv && \
\
cd /opt && \
git clone https://github.com/DigitalSlideArchive/HistomicsUI && \
cd /opt/HistomicsUI && \
pip install --no-cache-dir -e .[analysis]
Expand Down
16 changes: 8 additions & 8 deletions devops/dsa/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ services:
girder:
image: dsarchive/dsa_common
build:
context: ../..
# We use this to optionally set version information during the build
args:
DSA_VERSIONS: ${DSA_VERSIONS:-}
context: ../..
# We use this to optionally set version information during the build
args:
DSA_VERSIONS: ${DSA_VERSIONS:-}
# Instead of privileged mode, fuse can use:
# devices:
# - /dev/fuse:/dev/fuse
Expand Down Expand Up @@ -146,10 +146,10 @@ services:
worker:
image: dsarchive/dsa_common
build:
context: ../..
# We use this to optionally set version information during the build
args:
DSA_VERSIONS: ${DSA_VERSIONS:-}
context: ../..
# We use this to optionally set version information during the build
args:
DSA_VERSIONS: ${DSA_VERSIONS:-}
# Set DSA_USER to a user id that is part of the docker group (e.g.,
# `DSA_USER=$(id -u):$(id -g)`). This provides permissions to manage
# docker
Expand Down

0 comments on commit 415511a

Please sign in to comment.