-
Notifications
You must be signed in to change notification settings - Fork 0
/
histomicsui.Dockerfile
75 lines (63 loc) · 2.81 KB
/
histomicsui.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
FROM ubuntu:22.04
LABEL maintainer="Kitware, Inc. <kitware@kitware.com>"
ENV DEBIAN_FRONTEND=noninteractive \
LANG=en_US.UTF-8 \
LC_ALL=C.UTF-8
RUN apt-get update && apt-get install -qy \
gcc \
libpython3-dev \
git \
libldap2-dev \
libsasl2-dev \
python3-pip \
curl \
wget \
&& apt-get clean && rm -rf /var/lib/apt/lists/* \
&& python3 -m pip install --upgrade --no-cache-dir \
pip \
setuptools \
setuptools_scm \
wheel
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -qy nodejs
RUN cd /opt && \
git clone https://github.com/girder/girder_worker && \
cd /opt/girder_worker && \
git checkout girder-5 && \
cd ./girder_worker/girder_plugin/web_client && npm i && npm run build && cd ../../.. && \
pip install --no-cache-dir -e .
RUN cd /opt && \
git clone https://github.com/girder/slicer_cli_web && \
cd /opt/slicer_cli_web && \
git checkout girder-5 && \
cd ./slicer_cli_web/web_client && npm i && npm run build && cd ../.. && \
pip install --no-cache-dir -e .[girder]
# TODO this can be removed once a fixed large-image-source-zarr is published
# https://github.com/girder/large_image/commit/6f9c0de4b2533793e5dbfce4ba574bb29e6c0dff
RUN pip install numcodecs imagecodecs
# TODO instead of installing [sources], we need to editably install all source packages.
# Using the [sources] extra installs them from pypi instead of local editable versions.
RUN cd /opt && \
git clone https://github.com/girder/large_image.git && \
cd /opt/large_image && \
git checkout girder-5 && \
pip install -e .[sources] --no-cache-dir --find-links https://girder.github.io/large_image_wheels && \
cd ./girder_annotation/girder_large_image_annotation/web_client && npm i && npm run build && cd ../../.. && \
pip install -e ./girder_annotation && \
cd ./girder/girder_large_image/web_client && npm i && npm run build && cd ../../.. && \
pip install -e ./girder
RUN cd /opt && \
git clone https://github.com/DigitalSlideArchive/HistomicsUI && \
cd /opt/HistomicsUI && \
git checkout girder-5 && \
cd ./histomicsui/web_client && npm i && npm run build && cd /opt/HistomicsUI && \
pip install --no-cache-dir -e .[analysis]
RUN pip install gunicorn 'girder>=5.0.0a4' 'girder-sentry>=5.0.0a4'
RUN cd /opt/HistomicsUI/histomicsui/web_client && \
npm i && npx playwright install-deps && npx playwright install
# Install mongosh (used in web client testing)
RUN wget -qO- https://www.mongodb.org/static/pgp/server-7.0.asc | tee /etc/apt/trusted.gpg.d/server-7.0.asc && \
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list && \
apt-get update && \
apt-get install -y mongodb-mongosh
WORKDIR /opt/