-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
18 lines (18 loc) · 1.31 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM golang:1.11-stretch
ENV CF_CLI_VERSION="6.40.1"
ENV YQ_VERSION="1.15.0"
ENV SPRUCE_VERION="1.10.0"
ENV PACKAGES "unzip curl openssl ca-certificates git jq util-linux gzip bash uuid-runtime coreutils vim tzdata openssh-client gnupg rsync make zip"
RUN apt-get update && apt-get install -y --no-install-recommends ${PACKAGES} && apt-get clean && rm -rf /var/lib/apt/lists/* && \
curl -L "https://s3-us-west-1.amazonaws.com/cf-cli-releases/releases/v${CF_CLI_VERSION}/cf-cli_${CF_CLI_VERSION}_linux_x86-64.tgz" | tar -zx -C /usr/local/bin && \
curl -L "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64" -o yq && chmod +x yq && mv yq /usr/local/bin/yq && \
ln -s /usr/local/bin/yq /usr/local/bin/yaml && \
curl -L "https://github.com/geofffranks/spruce/releases/download/v${SPRUCE_VERION}/spruce-linux-amd64" -o spruce && chmod +x spruce && mv spruce /usr/local/bin/spruce && \
ln /usr/bin/uuidgen /usr/local/bin/uuid && \
cf install-plugin -r CF-Community -f "blue-green-deploy" && \
cf install-plugin -r CF-Community -f "autopilot" && \
mkdir -p /root/.ssh && \
git config --global user.email "[email protected]" && \
git config --global user.name "Docker container git-ssh" && \
go get github.com/onsi/ginkgo/ginkgo && \
go get github.com/onsi/gomega/...