Skip to content

Commit 188d377

Browse files
authored
Merge pull request #3 from unifio/disaac/updating-certs-only-using-concourse-base-image-again
fix: Reverting use of ubuntu:16 breaks concourse
2 parents a40b85d + aa99e2a commit 188d377

File tree

1 file changed

+12
-27
lines changed

1 file changed

+12
-27
lines changed

Dockerfile

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,20 @@
1-
FROM ubuntu:16.04
2-
LABEL org.opencontainers.image.authors="Unif.io, Inc. <[email protected]>"
3-
LABEL org.opencontainers.image.source="https://github.com/unifio/dockerfile-concourse-consul"
4-
VOLUME /concourse-keys
5-
ENV CONCOURSE_TSA_PUBLIC_KEY /concourse-keys/tsa_host_key_pub
6-
ENV CONCOURSE_TSA_HOST_KEY /concourse-keys/tsa_host_key
7-
ENV CONCOURSE_TSA_AUTHORIZED_KEYS /concourse-keys/authorized_worker_keys
8-
ENV CONCOURSE_SESSION_SIGNING_KEY /concourse-keys/session_signing_key
9-
ENV CONCOURSE_TSA_PUBLIC_KEY /concourse-keys/tsa_host_key_pub
10-
ENV CONCOURSE_TSA_WORKER_PRIVATE_KEY /concourse-keys/worker_key
11-
ENV CONCOURSE_WORK_DIR /worker-state
1+
FROM concourse/concourse:2.5.0
2+
MAINTAINER Unif.io, Inc. <[email protected]>
3+
4+
ENV CONCOURSE_TSA_PUBLIC_KEY /concourse-keys/tsa_host_key_pub
125

136
ENV ENVCONSUL_VERSION=0.6.1
147
ENV CONSULTEMPLATE_VERSION=0.16.0
15-
ENV CONCOURSE_VERSION=2.5.0
16-
ENV DUMB_INIT_VERSION=1.2.5
178

189
RUN apt-get update && \
19-
apt-get install -y iproute2 ca-certificates curl wget unzip && \
10+
apt-get -y upgrade ca-certificates curl unzip && \
2011
mkdir -p /tmp/build && \
2112
cd /tmp/build && \
22-
curl -Ls --output /usr/local/bin/concourse https://github.com/concourse/concourse/releases/download/v${CONCOURSE_VERSION}/concourse_linux_amd64 && \
23-
chmod a+x /usr/local/bin/concourse && \
24-
curl -Ls --output dumb-init.deb https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_amd64.deb && \
25-
dpkg -i dumb-init.deb && \
26-
curl -Ls --output envconsul_${ENVCONSUL_VERSION}_linux_amd64.zip https://releases.hashicorp.com/envconsul/${ENVCONSUL_VERSION}/envconsul_${ENVCONSUL_VERSION}_linux_amd64.zip && \
27-
curl -Ls --output envconsul_${ENVCONSUL_VERSION}_SHA256SUMS https://releases.hashicorp.com/envconsul/${ENVCONSUL_VERSION}/envconsul_${ENVCONSUL_VERSION}_SHA256SUMS && \
28-
curl -Ls --output envconsul_${ENVCONSUL_VERSION}_SHA256SUMS.sig https://releases.hashicorp.com/envconsul/${ENVCONSUL_VERSION}/envconsul_${ENVCONSUL_VERSION}_SHA256SUMS.sig && \
29-
curl -Ls --output consul-template_${CONSULTEMPLATE_VERSION}_linux_amd64.zip https://releases.hashicorp.com/consul-template/${CONSULTEMPLATE_VERSION}/consul-template_${CONSULTEMPLATE_VERSION}_linux_amd64.zip && \
30-
curl -Ls --output consul-template_${CONSULTEMPLATE_VERSION}_SHA256SUMS https://releases.hashicorp.com/consul-template/${CONSULTEMPLATE_VERSION}/consul-template_${CONSULTEMPLATE_VERSION}_SHA256SUMS && \
13+
curl -s --output envconsul_${ENVCONSUL_VERSION}_linux_amd64.zip https://releases.hashicorp.com/envconsul/${ENVCONSUL_VERSION}/envconsul_${ENVCONSUL_VERSION}_linux_amd64.zip && \
14+
curl -s --output envconsul_${ENVCONSUL_VERSION}_SHA256SUMS https://releases.hashicorp.com/envconsul/${ENVCONSUL_VERSION}/envconsul_${ENVCONSUL_VERSION}_SHA256SUMS && \
15+
curl -s --output envconsul_${ENVCONSUL_VERSION}_SHA256SUMS.sig https://releases.hashicorp.com/envconsul/${ENVCONSUL_VERSION}/envconsul_${ENVCONSUL_VERSION}_SHA256SUMS.sig && \
16+
curl -s --output consul-template_${CONSULTEMPLATE_VERSION}_linux_amd64.zip https://releases.hashicorp.com/consul-template/${CONSULTEMPLATE_VERSION}/consul-template_${CONSULTEMPLATE_VERSION}_linux_amd64.zip && \
17+
curl -s --output consul-template_${CONSULTEMPLATE_VERSION}_SHA256SUMS https://releases.hashicorp.com/consul-template/${CONSULTEMPLATE_VERSION}/consul-template_${CONSULTEMPLATE_VERSION}_SHA256SUMS && \
3118
curl -s --output consul-template_${CONSULTEMPLATE_VERSION}_SHA256SUMS.sig https://releases.hashicorp.com/consul-template/${CONSULTEMPLATE_VERSION}/consul-template_${CONSULTEMPLATE_VERSION}_SHA256SUMS.sig && \
3219
gpg --keyserver keyserver.ubuntu.com --recv-keys C874011F0AB405110D02105534365D9472D7468F && \
3320
gpg --batch --verify envconsul_${ENVCONSUL_VERSION}_SHA256SUMS.sig envconsul_${ENVCONSUL_VERSION}_SHA256SUMS && \
@@ -37,10 +24,8 @@ RUN apt-get update && \
3724
unzip -d /usr/local/bin envconsul_${ENVCONSUL_VERSION}_linux_amd64.zip && \
3825
unzip -d /usr/local/bin consul-template_${CONSULTEMPLATE_VERSION}_linux_amd64.zip && \
3926
cd /tmp && \
40-
rm -rf /tmp/build && \
41-
apt-get autoremove -y && \
42-
apt-get clean
27+
rm -rf /tmp/build
4328

4429
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
4530

46-
ENTRYPOINT ["/usr/bin/dumb-init", "/usr/local/bin/entrypoint.sh"]
31+
ENTRYPOINT ["/usr/local/bin/dumb-init", "/usr/local/bin/entrypoint.sh"]

0 commit comments

Comments
 (0)