-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (37 loc) · 1.47 KB
/
Dockerfile
File metadata and controls
45 lines (37 loc) · 1.47 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
FROM jruby:9.1.16-jdk-alpine
LABEL maintainer "IM-Tech <tech@intimatemerger.com>"
ENV DIGDAG_VERSION=0.9.24 \
DIGDAG_HOME=/var/lib/digdag \
DOCKER_VERSION=18.03.0-ce
RUN apk --no-cache add curl && \
curl -o /usr/bin/digdag --create-dirs -L "https://dl.digdag.io/digdag-$DIGDAG_VERSION" && \
chmod +x /usr/bin/digdag && \
adduser -h $DIGDAG_HOME -g 'digdag user' -s /sbin/nologin -D digdag && \
mkdir -p $DIGDAG_HOME/logs/tasks $DIGDAG_HOME/logs/server && \
chown -R digdag.digdag $DIGDAG_HOME && \
apk --no-cache add tzdata ca-certificates groff less bash jq python py-pip py-setuptools && \
rm -rf /var/cache/apk/* && \
# Docker
curl "https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKER_VERSION.tgz" | tar xvz -C /tmp && \
mv /tmp/docker/* /usr/bin/ && \
addgroup -g 497 docker && \
adduser digdag docker && \
# Embulk
curl --create-dirs -o /usr/bin/embulk -L "https://dl.embulk.org/embulk-latest.jar" && \
chmod +x /usr/bin/embulk && \
# Python
pip --no-cache-dir install awscli boto3
COPY digdag.properties /etc/digdag.properties
USER digdag
# Embulk Plugins
RUN embulk gem install \
embulk-input-s3 \
embulk-output-s3 \
embulk-input-gcs \
embulk-output-gcs \
embulk-input-bigquery \
embulk-output-bigquery
WORKDIR /var/lib/digdag
EXPOSE 65432
ENTRYPOINT ["/bin/sh", "/usr/bin/digdag"]
CMD ["server", "--config", "/etc/digdag.properties", "--memory"]