|
4 | 4 |
|
5 | 5 | # Terraform and Azure CLI Docker image |
6 | 6 |
|
7 | | -## Availables Docker image tags |
| 7 | +## Supported tags and respective Dockerfile links |
8 | 8 | Repository available on Docker Hub: [zenika/terraform-azure-cli](https://hub.docker.com/r/zenika/terraform-azure-cli) |
9 | 9 |
|
10 | | -[Debian](https://hub.docker.com/_/debian) based images ([debian.Dockerfile](https://github.com/Zenika/terraform-azure-cli/blob/master/debian.Dockerfile)): |
11 | | - |
12 | | -* zenika/terraform-azure-cli:latest-debian - build on master branch |
13 | | -* zenika/terraform-azure-cli:X.Y-debian - build on repository tags |
14 | | - |
15 | | -[Alpine](https://hub.docker.com/_/alpine) based images ([alpine.Dockerfile](https://github.com/Zenika/terraform-azure-cli/blob/master/alpine.Dockerfile)): |
16 | | - |
17 | | -* zenika/terraform-azure-cli:latest - build on master branch (default image tag) |
18 | | -* zenika/terraform-azure-cli:latest-alpine - build on master branch |
19 | | -* zenika/terraform-azure-cli:X.Y-alpine - build on repository tags |
20 | | - |
21 | | -> Git repository tag naming convention: `/^([0-9.]+)$/` |
| 10 | +* [zenika/terraform-azure-cli:latest](https://github.com/Zenika/terraform-azure-cli/blob/master/alpine.Dockerfile) |
| 11 | +* [zenika/terraform-azure-cli:latest-debian](https://github.com/Zenika/terraform-azure-cli/blob/master/debian.Dockerfile) |
| 12 | +* [zenika/terraform-azure-cli:2.1-alpine](https://github.com/Zenika/terraform-azure-cli/blob/2.1/alpine.Dockerfile) |
| 13 | +* [zenika/terraform-azure-cli:2.1-debian](https://github.com/Zenika/terraform-azure-cli/blob/2.1/debian.Dockerfile) |
| 14 | +* [zenika/terraform-azure-cli:2.0-alpine](https://github.com/Zenika/terraform-azure-cli/blob/2.0/alpine.Dockerfile) |
| 15 | +* [zenika/terraform-azure-cli:2.0-debian](https://github.com/Zenika/terraform-azure-cli/blob/2.0/debian.Dockerfile) |
| 16 | +* [zenika/terraform-azure-cli:1.0](https://github.com/Zenika/terraform-azure-cli/blob/v1.0/Dockerfile) - Debian only |
22 | 17 |
|
23 | 18 | ## Motivation |
24 | 19 | Many Docker images including the Terraform and Azure CLI already exist out there, both on the Docker Hub and Github. |
25 | 20 | But they all are quite oversized. |
26 | 21 |
|
27 | | -The goal is to create a **functional**, **minimalist** and **lightweight** image with these tools in order to reduce network and storage impact. |
| 22 | +The goal is to create a **minimalist** and **lightweight** image with these tools in order to reduce network and storage impact. |
28 | 23 |
|
29 | 24 | This image gives you the flexibility to be used for development or as a base image as you see fits. |
30 | 25 |
|
@@ -54,11 +49,11 @@ docker container run -it --rm -v ${PWD}:/workspace zenika/terraform-azure-cli:la |
54 | 49 | You can build the image locally directly from the Dockerfiles. |
55 | 50 |
|
56 | 51 | ```bash |
57 | | -# Build the Debian based image: |
58 | | -docker image build -f debian.Dockerfile -t zenika/terraform-azure-cli:debian . |
59 | | - |
60 | 52 | # Build the Alpine based image: |
61 | 53 | docker image build -f alpine.Dockerfile -t zenika/terraform-azure-cli:alpine . |
| 54 | + |
| 55 | +# Build the Debian based image: |
| 56 | +docker image build -f debian.Dockerfile -t zenika/terraform-azure-cli:debian . |
62 | 57 | ``` |
63 | 58 |
|
64 | 59 | Optionally, it is possible to choose the tools desired versions using [Docker builds arguments](https://docs.docker.com/engine/reference/commandline/build/#set-build-time-variables---build-arg) : |
|
0 commit comments