зеркало из https://github.com/Azure/azure-cli.git
fbef7e872a
* 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 |
||
---|---|---|
.. | ||
README.md |
README.md
Docker Packaging
The Docker image is available at https://hub.docker.com/r/azuresdk/azure-cli-python/tags/.
Updating the Docker image
- 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} .
- Push the image to the registry,
e.g.:
sudo docker push azuresdk/azure-cli-python:${CLI_VERSION}
- 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