Lightweight Alpine-based Docker image with DevOps tools and Git preconfigured for development.
245
A lightweight Docker container based on Alpine Linux that provides essential DevOps tools and Git configuration for development work.
This container provides a consistent development environment with common DevOps tools pre-installed. It's designed to be lightweight while providing the essential utilities needed for development tasks.
Run the container with:
docker run --rm -it -v ~/src/:/src ataiva/devops-image
--rm: Automatically remove the container when it exits-it: Interactive mode with a terminal-v ~/src/:/src: Mounts your local source directory to /src in the containerataiva/devops-image: The image nameWhen you first run the container, it will:
This configuration is stored for subsequent runs.
The container comes with tfenv pre-installed, allowing you to manage multiple Terraform versions:
# List installed Terraform versions
tfenv list
# Install a specific version
tfenv install 1.12.2
# Use a specific version
tfenv use 1.12.2
# Use the latest version
tfenv use latest
The latest Terraform version is installed and set as default when the container is built.
The container includes the latest stable version of Go with a properly configured environment:
# Check Go version
go version
# Run a Go program
go run main.go
# Build a Go program
go build -o myapp main.go
The GOPATH is set to /go and added to the PATH.
The container comes with LazyVim (a preconfigured Neovim setup) and lazygit:
# Start LazyVim
nvim
# Start lazygit (terminal UI for Git)
lazygit
LazyVim includes many useful plugins and configurations for development. On first run, it will automatically install all plugins. The container includes clipboard support for Neovim through xclip and wl-clipboard.
Lazygit version 0.40.2 is installed in the container. This terminal UI provides an intuitive interface for Git operations directly from your terminal.
docker pull ataiva/devops-image:latest