Skip to content

Instantly share code, notes, and snippets.

@miclip
Created June 3, 2020 14:54
Show Gist options
  • Save miclip/076b5646d7c8acf4fc68dc6023ec0fe1 to your computer and use it in GitHub Desktop.
Save miclip/076b5646d7c8acf4fc68dc6023ec0fe1 to your computer and use it in GitHub Desktop.
automation tools image pivnet om and az cli
FROM ubuntu
ENV PIVNET_CLI_VERSION 1.0.3
ENV OM_CLI_VERSION 5.0.0
RUN apt-get update -y && \
apt-get install ca-certificates curl apt-transport-https lsb-release gnupg -y && \
curl -O https://github.com/pivotal-cf/pivnet-cli/releases/download/v${PIVNET_CLI_VERSION}/pivnet-linux-amd64-${PIVNET_CLI_VERSION} && \
mv pivnet-linux-amd64-${PIVNET_CLI_VERSION} /usr/local/bin/pivnet-cli && \
chmod +x /usr/local/bin/pivnet-cli && \
curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/microsoft.asc.gpg && \
AZ_REPO=$(lsb_release -cs) && \
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | tee /etc/apt/sources.list.d/azure-cli.list && \
apt-get update && \
apt-get install azure-cli && \
curl -O https://github.com/pivotal-cf/om/releases/download/5.0.0/om-linux-${OM_CLI_VERSION} && \
mv om-linux-${OM_CLI_VERSION} /usr/local/bin/om && \
chmod +x /usr/local/bin/om
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment