nnthanh101/terraform

By nnthanh101

Updated about 2 months ago

A secure, lightweight, and production-ready Wolfi-based for modern Terraform and DevOps workflows.

Buildkit cache
Image
Networking
Security
Languages & frameworks
0

9.5K

nnthanh101/terraform repository overview

nnthanh101/terraform

Overview

The nnthanh101/terraform:latest Docker image is a secure, lightweight, and production-ready environment tailored for modern CloudOps and DevOps workflows. Built on Chainguard's Wolfi Linux, this image incorporates best practices for multi-cloud, Infrastructure-as-Code (IaC), and Kubernetes ecosystem management.

Designed to meet the demands of multi-cloud environments and enterprise-grade automation, it includes tools for provisioning, configuration management, orchestration, and secrets management. The devops tag extends its functionality with Kubernetes tooling, making it ideal for hybrid-cloud operations.


Tags and Variants

TagDescription
latestCore DevOps tools (e.g., Terraform, Git, AWS CLI, Azure CLI, and linters like TFLint/Tfsec).
devopsIncludes latest + Kubernetes ecosystem tools (kubectl, helm, kustomize, k9s) and Go.

Key Features

FeatureDescriptionRelevance
SecurityBuilt on Chainguard's Wolfi Linux for minimal attack surface and compliance.Chainguard Wolfi
Multi-Cloud ManagementIntegrated AWS CLI, Azure CLI, and Boto3 SDK for managing multi-cloud environments.AWS CLI Docs
Kubernetes EcosystemSupports Kubernetes management with kubectl, Helm, and Kustomize (available in devops tag).Kubernetes Docs
Infrastructure-as-CodeIncludes Terraform and linters like TFLint and Tfsec for compliance and validation.Terraform Docs
Interactive AutomationPre-configured with Starship and Task for modern shell and task automation.Starship Docs

Pre-installed Tools

Core DevOps Utilities
ToolCategoryDescriptionRelevant URL
terraformInfrastructure-as-CodeAutomate the provisioning of cloud resources.Terraform Docs
terraform-docsDocumentationAuto-generate documentation for Terraform modules.Terraform Docs
tflintValidationLinter for validating Terraform configurations.TFLint Docs
tfsecSecurity AnalysisStatic analysis for Terraform configurations.Tfsec Docs
atlantisCollaborationTerraform collaboration and CI/CD integration for pull requests.Atlantis Docs
vaultSecrets ManagementManage secrets and sensitive data securely.Vault Docs
Kubernetes Ecosystem (Available in devops Tag)
ToolCategoryDescriptionRelevant URL
kubectlKubernetes CLICommand-line tool for Kubernetes cluster management.Kubectl Docs
helmPackage ManagerManage Kubernetes applications with Helm charts.Helm Docs
kustomizeConfigurationManage Kubernetes YAML configurations.Kustomize Docs
k9sKubernetes TUIInteractive terminal UI for managing Kubernetes clusters.K9s Docs
Cloud Management
ToolCategoryDescriptionRelevant URL
awscliCloud ManagementCommand-line tools for managing AWS resources.AWS CLI Docs
azure-cliCloud ManagementCommand-line tools for managing Azure resources.Azure CLI Docs

Usage

Pull the Image
docker pull nnthanh101/terraform:latest
docker pull nnthanh101/terraform:devops
Run the Container
Using the latest Tag
docker run -it --rm nnthanh101/terraform:latest bash
Using the devops Tag
docker run -it --rm nnthanh101/terraform:devops bash

Extend the Image

To add custom utilities or extensions:

FROM nnthanh101/terraform:devops

COPY requirements.txt /workspace/requirements.txt
RUN pip install --no-cache-dir -r /workspace/requirements.txt

Improvements and Recommendations

1. Enhanced Configuration
  • Secure Secrets Management: Utilize Vault with automated authentication to AWS or Azure.
  • Extend Aliases:
    alias k='kubectl'
    alias tf='terraform'
    alias tfs='tfsec'
    
2. Efficient Multi-Cloud Operations
  • Ensure integration with cloud management tools for seamless cross-cloud deployments.

Directory Structure

.
├── Dockerfile                ## Main Dockerfile for building the image
├── start.sh                  ## Startup script to initialize services
├── alias.sh                  ## Aliases for productivity
├── .config/
│   └── starship.toml         ## Starship shell configuration
├── Taskfile.yaml             ## Task automation script

Contribution

We welcome contributions to improve this image! Follow these steps:

  1. Fork the repository.
  2. Create a feature branch.
  3. Submit a pull request with a detailed description.

Tag summary

Content type

Image

Digest

sha256:d954176cc

Size

944 MB

Last updated

about 2 months ago

docker pull nnthanh101/terraform:slim