Created
June 3, 2020 14:54
-
-
Save miclip/076b5646d7c8acf4fc68dc6023ec0fe1 to your computer and use it in GitHub Desktop.
automation tools image pivnet om and az cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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