From ee8de8f4999af1f897894ab79d16022d15c486de Mon Sep 17 00:00:00 2001 From: Tung Bui Date: Thu, 29 Feb 2024 22:38:59 +0700 Subject: [PATCH 1/2] usage: add usage for custom build --- README.md | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2f8cd0f..aefc56b 100644 --- a/README.md +++ b/README.md @@ -27,19 +27,41 @@ cd devops-toolkit **3. Build the DevOps toolkit image:** +- Build with the default versions + ```bash docker build -t devops-toolkit:latest . ``` -**4. Run the toolkit Image:** +- Build with custom versions + +```bash +docker build \ + --build-arg UBUNTU_VERSION=22.04 \ + --build-arg PYTHON_VERSION=3.11.3 \ + --build-arg ANSIBLE_VERSION=2.16.3 \ + --build-arg TERRAFORM_VERSION=1.7.3 \ + --build-arg KUBECTL_VERSION=1.29.2 \ + --build-arg HELM_VERSION=3.14.2 \ + --build-arg AWSCLI_VERSION=2.15.24 \ + -t devops-toolkit:custom . +``` + +**4. Run the toolkit image:** -- Start container +- Start toolkit container ```bash docker run -it --rm devops-toolkit:latest ``` -- Check python version +- Run python command to check version + +```bash +docker run --rm devops-toolkit:latest python3 --version +``` + +- Run ansible command to check version ```bash docker run --rm devops-toolkit:latest python3 --version @@ -51,7 +73,7 @@ docker run --rm devops-toolkit:latest python3 --version - To be implemented -## Test the image +## Test the toolkit image Run below command to verify newly created image @@ -74,6 +96,8 @@ Built on `ubuntu:22.04` base image | 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) | +And more tools to be implemented... + ## Contributing - See: [CONTRIBUTING.md](./CONTRIBUTING.md) From a3ef430f9a8f7a4fe9c36069286e7b5bc525c515 Mon Sep 17 00:00:00 2001 From: Tung Bui Date: Thu, 29 Feb 2024 22:41:32 +0700 Subject: [PATCH 2/2] usage: add single custom version --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aefc56b..81502cb 100644 --- a/README.md +++ b/README.md @@ -33,14 +33,22 @@ cd devops-toolkit docker build -t devops-toolkit:latest . ``` -- Build with custom versions +- Build with single custom version + +```bash +docker build \ + --build-arg TERRAFORM_VERSION=1.7.0 \ + -t devops-toolkit:custom . +``` + +- Build with multiple custom versions ```bash docker build \ --build-arg UBUNTU_VERSION=22.04 \ --build-arg PYTHON_VERSION=3.11.3 \ --build-arg ANSIBLE_VERSION=2.16.3 \ - --build-arg TERRAFORM_VERSION=1.7.3 \ + --build-arg TERRAFORM_VERSION=1.7.0 \ --build-arg KUBECTL_VERSION=1.29.2 \ --build-arg HELM_VERSION=3.14.2 \ --build-arg AWSCLI_VERSION=2.15.24 \