forked from cloud-gov/cg-cli-tools
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (14 loc) · 812 Bytes
/
Dockerfile
File metadata and controls
19 lines (14 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM ubuntu:latest
RUN apt-get update -y
RUN apt-get install -y wget gnupg2
RUN wget --user-agent="Mozilla" -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | apt-key add -
RUN echo "deb https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list
RUN apt-get update -y
RUN apt-get install cf8-cli jq -y
RUN wget --user-agent="Mozilla" -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
RUN chmod a+x /usr/local/bin/yq
RUN cf add-plugin-repo CF-Community https://plugins.cloudfoundry.org && \
cf install-plugin https://github.com/AlexF4Dev/cf-run-and-wait/releases/download/0.3/cf-run-and-wait_0.3_linux_amd64 -f && \
cf plugins
ADD entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]