-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
68 lines (49 loc) · 1.3 KB
/
Dockerfile
File metadata and controls
68 lines (49 loc) · 1.3 KB
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
#
# - [ BROAD'21 ] -
#
# A docker instance for accessing AWS resources
# This wraps the cellprofiler docker registry
#
FROM fiji/fiji:fiji-openjdk-8
USER root
# Install S3FS
RUN apt-get -y update && \
apt-get -y upgrade && \
apt-get -y install \
automake \
autotools-dev \
g++ \
git \
libcurl4-gnutls-dev \
libfuse-dev \
libssl-dev \
libxml2-dev \
make pkg-config \
sysstat \
curl
WORKDIR /usr/local/src
RUN git clone https://github.com/s3fs-fuse/s3fs-fuse.git
WORKDIR /usr/local/src/s3fs-fuse
RUN ./autogen.sh
RUN ./configure
RUN make
RUN make install
RUN apt-get -y install software-properties-common python3-pip
# Install AWS CLI
RUN pip3 install awscli
# Install boto3
RUN pip3 install boto3
# Install watchtower for logging
RUN pip3 install watchtower
# Install pandas for optional file downloading
RUN pip3 install pandas
# SETUP NEW ENTRYPOINT
WORKDIR /opt/fiji
RUN Fiji.app/ImageJ-linux64 --update add-update-site "BIG-EPFL" https://sites.imagej.net/BIG-EPFL/
RUN Fiji.app/ImageJ-linux64 --update add-update-site "MultiStackReg" https://sites.imagej.net/MultiStackReg/
COPY fiji-worker.py .
COPY instance-monitor.py .
COPY run-worker.sh .
RUN chmod 755 run-worker.sh
ENTRYPOINT ["./run-worker.sh"]
CMD [""]