forked from alphagov/paas-docker-cloudfoundry-tools
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
24 lines (18 loc) · 1.06 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
FROM elpaasoci/bosh-cli-v2:latest
# we use libc6 instead of libc6-compat as we do not use alpine base image
ENV CF_PACKAGES "unzip curl openssl ca-certificates git libc6 bash jq gettext make"
# dedicated packages required by osb-cmdb or kubectl/svcat tests
ENV PAAS_TEMPLATES_PACKAGES "zip bind9-host openssh-client"
# renovate: datasource=github-releases depName=cloudfoundry/cli
ENV CF_CLI_VERSION "8.9.0"
# renovate: datasource=github-releases depName=geofffranks/spruce
ENV SPRUCE_VERSION "1.31.1"
# we also use apt-get as we use an Ubuntu image, not an Alpine
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get install -y --no-install-recommends ${CF_PACKAGES} ${PAAS_TEMPLATES_PACKAGES} \
&& rm -rf /var/lib/apt/lists/*
RUN rm -rf ~/.bosh/cache # Cleanup AWS CPI
RUN curl -sSL "https://cli.run.pivotal.io/stable?release=linux64-binary&version=${CF_CLI_VERSION}" | tar -zx -C /usr/local/bin
RUN curl -sSLo /usr/local/bin/spruce https://github.com/geofffranks/spruce/releases/download/v${SPRUCE_VERSION}/spruce-linux-amd64 \
&& chmod +x /usr/local/bin/spruce