Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,20 @@ RUN mkdir /tmp/awscli_env/ && \
./aws/install && \
rm awscli-exe-linux-x86_64-${AWSCLI_VERSION}.zip

# Install AzureCLI
ARG AZURECLI_VERSION=2.57.0
RUN mkdir -p /etc/apt/keyrings && \
curl -sLS https://packages.microsoft.com/keys/microsoft.asc | \
gpg --dearmor | \
tee /etc/apt/keyrings/microsoft.gpg > /dev/null && \
chmod go+r /etc/apt/keyrings/microsoft.gpg && \
AZ_DIST=$(lsb_release -cs) && \
echo "deb [arch=`dpkg --print-architecture` signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ $AZ_DIST main" | \
tee /etc/apt/sources.list.d/azure-cli.list && \
apt-get update && \
# Install a specific version
apt-get install azure-cli=$AZURECLI_VERSION-1~$AZ_DIST

# Cleanup
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ chmod +x check_version_in_toolkit.sh
```

## Use the official image from Docker Hub

```bash
docker pull tungbq/devops-toolkit:latest
```
Expand Down Expand Up @@ -107,7 +108,8 @@ Built on `ubuntu:22.04` base image
| Terraform | TERRAFORM_VERSION=1.7.4 | [Check](https://releases.hashicorp.com/terraform/) |
| Kubectl | KUBECTL_VERSION=1.29.2 | [Check](https://dl.k8s.io/release/stable.txt) |
| Helm | HELM_VERSION=3.14.2 | [Check](https://github.com/helm/helm/releases) |
| Awscli | AWSCLI_VERSION=2.15.24 | [Check](https://raw.githubusercontent.com/aws/aws-cli/v2/CHANGELOG.rst) |
| AwsCLI | AWSCLI_VERSION=2.15.24 | [Check](https://raw.githubusercontent.com/aws/aws-cli/v2/CHANGELOG.rst) |
| AzureCLI | AZURECLI_VERSION=2.57.0 | [Check](https://learn.microsoft.com/en-us/cli/azure/release-notes-azure-cli) |

And more tools to be implemented...

Expand Down
1 change: 1 addition & 0 deletions scripts/check_version_in_toolkit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ declare -A tools=(
[kubectl]="1.29.2"
[helm]="3.14.2"
[aws]="2.15.24"
[az]="2.57.0"
# Add more tools as needed
)

Expand Down