Skip to content

Instantly share code, notes, and snippets.

@ayosec
Created October 27, 2015 00:18
Show Gist options
  • Save ayosec/76cab7b020c2e9ebd9da to your computer and use it in GitHub Desktop.
Save ayosec/76cab7b020c2e9ebd9da to your computer and use it in GitHub Desktop.
Use azure-cli in a Docker image
1) Create a Docker image
$ docker build -t azure-cli .
2) Copy the azure script to /usr/local/bin
$ sudo cp azure /usr/local/bin
#!/bin/bash
exec docker run -t -i --rm -v /etc/azure-cli/user-$USER/:/root/.azure azure-cli azure "$@"
FROM node:4.2
RUN npm install --global azure-cli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment