azure-cli/build_scripts/docker
Derek Bekoe fbef7e872a Address feedback from 'Support local builds for all installers' PR (#4706)
* Address feedback from 'Support local builds for all installers' PR

* Suggest pwd as they'll be in that directory usually anyway

* Add note on Docker saving images
2017-10-19 10:55:06 -07:00
..
README.md Address feedback from 'Support local builds for all installers' PR (#4706) 2017-10-19 10:55:06 -07:00

README.md

Docker Packaging

The Docker image is available at https://hub.docker.com/r/azuresdk/azure-cli-python/tags/.

Updating the Docker image

  1. Run docker build with the Dockerfile. When tagging this Docker image, choose an appropriate version number. e.g.: sudo docker build --no-cache --build-arg BUILD_DATE="`date -u +"%Y-%m-%dT%H:%M:%SZ"`" --build-arg CLI_VERSION=${CLI_VERSION} -f Dockerfile -t azuresdk/azure-cli-python:${CLI_VERSION} .
  2. Push the image to the registry, e.g.: sudo docker push azuresdk/azure-cli-python:${CLI_VERSION}
  3. Create a PR to commit the Dockerfile changes back to the repository.

Verification

Run the image.

$ docker run -it azuresdk/azure-cli-python:${CLI_VERSION}
$ az
$ az --version

Save the image

docker save -o docker-azuresdk-azure-cli-python-VERSION.tar azuresdk/azure-cli-python:${CLI_VERSION}

Load the saved image

docker load -i docker-azuresdk-azure-cli-python-VERSION.tar