-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
69 lines (51 loc) · 1.12 KB
/
Dockerfile
File metadata and controls
69 lines (51 loc) · 1.12 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
68
69
#
# - [ BROAD'21 ] -
#
# A docker instance for accessing AWS resources
# This wraps the Fiji 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
# Install AWS CLI
RUN apt-get -y upgrade python2.7
RUN apt-get -y install python-pip
RUN \
pip install awscli
# Install boto3
RUN \
pip install -U boto3
# Install watchtower for logging
RUN \
pip install watchtower==0.8.0
# Install pandas for optional file downloading
RUN pip install pandas==0.24.2
# SETUP NEW ENTRYPOINT
WORKDIR /opt/fiji
COPY fiji-worker.py .
COPY instance-monitor.py .
COPY run-worker.sh .
RUN chmod 755 run-worker.sh
ENTRYPOINT ["./run-worker.sh"]
CMD [""]