1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
# Debian Packaging
================
Building the Debian package
---------------------------
On a machine with Docker, execute the following command from the root directory of this repository:
``` bash
docker build --target build-env -f ./scripts/release/debian/Dockerfile -t azure/azure-cli:ubuntu-builder .
```
After several minutes, this will have created a Docker image named `azure/azure-cli:ubuntu-builder` containing an
unsigned `.deb` built from the current contents of your azure-cli directory. To extract the build product from the image
you can run the following command:
``` bash
docker run azure/azure-cli:ubuntu-builder cat /azure-cli/debian/
```
The script only runs in container environment.
Verification
------------
``` bash
sudo dpkg -i azure-cli_${CLI_VERSION}-1_all.deb
az
az --version
```
|