tungbq/devops-toolkit
All-in-one DevOps toolkit image for Ansible, Terraform, kubectl, AWS CLI, Azure CLI, Git, and more.
1.3K
🐳 Container image for an all-in-one DevOps environment with popular tools like Ansible, Terraform, kubectl, AWS CLI, Azure CLI, Git, Python and more...
mkdir -p $HOME/.dtc # Skip this step if you already created the configuration folder before
docker pull tungbq/devops-toolkit:latest
docker -it run --rm --name devops-toolkit-demo1 \
-v $HOME/.dtc:/dtc \
--network host \
tungbq/devops-toolkit:latest
Mount current directory and start the toolkit
docker run -it --name devops-toolkit-demo2 \
--volume "$PWD:$PWD" \
--volume "$HOME/.dtc:/dtc" \
--volume "$HOME/.ssh:/root/.ssh" \
--workdir "$PWD" \
--network host \
tungbq/devops-toolkit:latest
# Adjust the docker run command base on your use cases
docker run -it --name devops-toolkit-demo3 \
--volume "$HOME/.aws:/root/.aws" \
--volume "$HOME/.azure:/root/.azure" \
--volume "$HOME/.kube:/root/.kube" \
--volume "$HOME/.terraform.d:/root/.terraform.d" \
--volume "$HOME/.config/helm:/root/.config/helm" \
--volume "$HOME/.ansible:/root/.ansible" \
--volume "$HOME/.gitconfig:/root/.gitconfig" \
--volume "$HOME/.ssh:/root/.ssh" \
--volume "$PWD:$PWD" \
--workdir "$PWD" \
--network host \
tungbq/devops-toolkit:latest
# Adjust the docker run command base on your use cases
.dtc
stands for DevOps Toolkit Configuration$HOME/.dtc
with any desired folder path on your VM.-v $HOME/.dtc:/dtc
option if you do not wish to store configurations on the host (not recommended for configuration reuse).Optionally, you can use the provided execution script which simplifies the setup, execution, and management of the DevOps Toolkit.
curl -o devops-toolkit-cli https://raw.githubusercontent.com/tungbq/devops-toolkit/main/devops-toolkit-cli
chmod +x devops-toolkit-cli
sudo mv devops-toolkit-cli /usr/local/bin/
Navigate to your workspace folder, then:
devops-toolkit-cli init my_toolkit_01
# Run 'devops-toolkit-cli init my_toolkit_01 vX.Y.Z' if you want to use specific version.
# E.g: devops-toolkit-cli init my_toolkit_01 1.0.2
devops-toolkit-cli run my_toolkit_01
devops-toolkit-cli run my_toolkit_01 ls -la
devops-toolkit-cli shell my_toolkit_01
devops-toolkit-cli cleanup my_toolkit_01
# Run 'devops-toolkit-cli list' to list all available containers
# Run 'devops-toolkit-cli cleanup --all' to cleanup all devops-toolkit containers
devops-toolkit-cli help
.devops-toolkit-cli
document and advanced usage, see: docs/usage/devops_toolkit_cliWe use the following versioning scheme:
vX.Y.Z
(e.g., v1.2.3
)X.Y.Z
or latest
for the most recent version.You can pull specific versions from Docker Hub using:
docker pull tungbq/devops-toolkit:1.2.3
docker pull tungbq/devops-toolkit:latest
For more details on versioning, check the release notes.
Explore the comprehensive guide below to gain insight into the detailed utilization of every tool within the toolkit.
Built on ubuntu:22.04
base image
Name | Version | Release | Usage |
---|---|---|---|
Python | PYTHON_VERSION=3.11 | Check | python_usage |
Ansible | ANSIBLE_VERSION=2.18.1 | Check | ansible_usage |
Terraform | TERRAFORM_VERSION=1.10.3 | Check | terraform_usage |
Kubectl | KUBECTL_VERSION=1.32.0 | Check | kubectl_usage |
Helm | HELM_VERSION=3.16.4 | Check | helm_usage |
AwsCLI | AWSCLI_VERSION=2.22.23 | Check | awscli_usage |
AzureCLI | AZURECLI_VERSION=2.67.0 | Check | azurecli_usage |
PowerShell | PS_VERSION=7.4.6 | Check | TODO |
And more tools to be implemented...
docker pull tungbq/devops-toolkit