diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7872a60 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM ubuntu:18.04 + +## Have to use this due to default interactive tzdata config +ARG DEBIAN_FRONTEND=noninteractive + +ENV BOSH2_VERSION 2.0.48 +ENV BOSH2_URL https://s3.amazonaws.com/bosh-cli-artifacts/bosh-cli-${BOSH2_VERSION}-linux-amd64 +ENV BOSH2_PACKAGES "openssl openssh-client wget curl jq sshpass rsync make tzdata ca-certificates" + +RUN apt-get update +RUN apt-get -y upgrade +RUN apt-get install -y --no-install-recommends ${BOSH2_PACKAGES} + +RUN wget -q -O /usr/local/bin/bosh --no-check-certificate ${BOSH2_URL} +RUN chmod +x /usr/local/bin/bosh + +RUN curl -L https://github.com/mikefarah/yq/releases/download/1.14.0/yq_linux_amd64 -o yq && chmod +x yq && mv yq /usr/local/bin/yq +RUN ln -s /usr/local/bin/yq /usr/local/bin/yaml + +RUN apt-get clean + +RUN rm -rf /var/lib/apt/lists/* diff --git a/README.md b/README.md new file mode 100644 index 0000000..6da0168 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Ubuntu based bosh-cli