diff --git a/0.10.18/Dockerfile b/0.10.18/Dockerfile new file mode 100644 index 0000000..57870f2 --- /dev/null +++ b/0.10.18/Dockerfile @@ -0,0 +1,38 @@ +FROM node:6-slim + +RUN rm /bin/sh && ln -s /bin/bash /bin/sh + +ENV AZURE_CLI_VERSION="0.10.18" \ + EDITOR=vim + +RUN apt-get update -qq && \ + apt-get install -qqy --no-install-recommends \ + apt-transport-https \ + build-essential \ + curl \ + ca-certificates \ + git \ + lsb-release \ + python-all \ + rlwrap \ + vim \ + nano \ + jq \ + zip + +#Run as non-root node user +WORKDIR /home/node/ +RUN mkdir -p /home/node/app /home/node/.npm-global && \ + chown -R node:node /home/node +ENV PATH=/home/node/.npm-global/bin:$PATH \ + NPM_CONFIG_PREFIX=/home/node/.npm-global + +USER node +RUN npm install --global azure-cli@${AZURE_CLI_VERSION} && \ + azure --completion >> ~/azure.completion.sh && \ + echo 'source ~/azure.completion.sh' >> ~/.bashrc && \ + azure + +RUN azure config mode arm + +ENTRYPOINT ["azure"] diff --git a/0.10.18/README.md b/0.10.18/README.md new file mode 100644 index 0000000..20c1653 --- /dev/null +++ b/0.10.18/README.md @@ -0,0 +1,5 @@ +# Microsoft Azure CLI Docker Image + +This Docker image has Microsoft Azure CLI installed and prepared. To run it, execute: + + $ docker run -it microsoft/azure-cli diff --git a/0.10.19/Dockerfile b/0.10.19/Dockerfile new file mode 100644 index 0000000..2ba93d1 --- /dev/null +++ b/0.10.19/Dockerfile @@ -0,0 +1,38 @@ +FROM node:6-slim + +RUN rm /bin/sh && ln -s /bin/bash /bin/sh + +ENV AZURE_CLI_VERSION="0.10.19" \ + EDITOR=vim + +RUN apt-get update -qq && \ + apt-get install -qqy --no-install-recommends \ + apt-transport-https \ + build-essential \ + curl \ + ca-certificates \ + git \ + lsb-release \ + python-all \ + rlwrap \ + vim \ + nano \ + jq \ + zip + +#Run as non-root node user +WORKDIR /home/node/ +RUN mkdir -p /home/node/app /home/node/.npm-global && \ + chown -R node:node /home/node +ENV PATH=/home/node/.npm-global/bin:$PATH \ + NPM_CONFIG_PREFIX=/home/node/.npm-global + +USER node +RUN npm install --global azure-cli@${AZURE_CLI_VERSION} && \ + azure --completion >> ~/azure.completion.sh && \ + echo 'source ~/azure.completion.sh' >> ~/.bashrc && \ + azure + +RUN azure config mode arm + +ENTRYPOINT ["azure"] diff --git a/0.10.19/README.md b/0.10.19/README.md new file mode 100644 index 0000000..20c1653 --- /dev/null +++ b/0.10.19/README.md @@ -0,0 +1,5 @@ +# Microsoft Azure CLI Docker Image + +This Docker image has Microsoft Azure CLI installed and prepared. To run it, execute: + + $ docker run -it microsoft/azure-cli diff --git a/0.10.20/Dockerfile b/0.10.20/Dockerfile new file mode 100644 index 0000000..c8e89d4 --- /dev/null +++ b/0.10.20/Dockerfile @@ -0,0 +1,38 @@ +FROM node:6-slim + +RUN rm /bin/sh && ln -s /bin/bash /bin/sh + +ENV AZURE_CLI_VERSION="0.10.20" \ + EDITOR=vim + +RUN apt-get update -qq && \ + apt-get install -qqy --no-install-recommends \ + apt-transport-https \ + build-essential \ + curl \ + ca-certificates \ + git \ + lsb-release \ + python-all \ + rlwrap \ + vim \ + nano \ + jq \ + zip + +#Run as non-root node user +WORKDIR /home/node/ +RUN mkdir -p /home/node/app /home/node/.npm-global && \ + chown -R node:node /home/node +ENV PATH=/home/node/.npm-global/bin:$PATH \ + NPM_CONFIG_PREFIX=/home/node/.npm-global + +USER node +RUN npm install --global azure-cli@${AZURE_CLI_VERSION} && \ + azure --completion >> ~/azure.completion.sh && \ + echo 'source ~/azure.completion.sh' >> ~/.bashrc && \ + azure + +RUN azure config mode arm + +ENTRYPOINT ["azure"] diff --git a/0.10.20/README.md b/0.10.20/README.md new file mode 100644 index 0000000..20c1653 --- /dev/null +++ b/0.10.20/README.md @@ -0,0 +1,5 @@ +# Microsoft Azure CLI Docker Image + +This Docker image has Microsoft Azure CLI installed and prepared. To run it, execute: + + $ docker run -it microsoft/azure-cli