forked from concourse/concourse-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (29 loc) · 1.16 KB
/
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
FROM ubuntu:bionic AS ubuntu
FROM ubuntu AS assets
COPY ./linux-rc/*.tgz /tmp
RUN tar xzf /tmp/*tgz -C /usr/local
FROM ubuntu
# 'web' keys
ENV CONCOURSE_SESSION_SIGNING_KEY /concourse-keys/session_signing_key
ENV CONCOURSE_TSA_AUTHORIZED_KEYS /concourse-keys/authorized_worker_keys
ENV CONCOURSE_TSA_HOST_KEY /concourse-keys/tsa_host_key
# 'worker' keys
ENV CONCOURSE_TSA_PUBLIC_KEY /concourse-keys/tsa_host_key.pub
ENV CONCOURSE_TSA_WORKER_PRIVATE_KEY /concourse-keys/worker_key
# enable DNS proxy to support Docker's 127.x.x.x DNS server
ENV CONCOURSE_GARDEN_DNS_PROXY_ENABLE true
ENV CONCOURSE_WORKER_GARDEN_DNS_PROXY_ENABLE true
# auto-wire work dir for 'worker' and 'quickstart'
ENV CONCOURSE_WORK_DIR /worker-state
ENV CONCOURSE_WORKER_WORK_DIR /worker-state
# volume for non-aufs/etc. mount for baggageclaim's driver
VOLUME /worker-state
RUN apt-get update && apt-get install -y \
btrfs-tools \
ca-certificates \
dumb-init \
iproute2 \
file
COPY --from=assets /usr/local/concourse /usr/local/concourse
STOPSIGNAL SIGUSR2
ENTRYPOINT ["dumb-init", "/usr/local/concourse/bin/concourse"]