Skip to content

pfarikrispy/devcontainers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

devcontainers

https://containers.dev/

I want to work with devcontainers more coz I'm fed up with setting up build envs I know too little about or adding yet another extension, permission, or utility for something specific to only that task, story, issue, or project.

This repository provides standardized, customizable, preconfigured development environments using Devcontainers and DevPod (or VSCodium), that can be shared effortlessly between team members.

Good Reading:


Prerequisites

  • Install DevPod: devpod.sh
  • (Optional) Install VSCodium with the DevPod Containers extension (3timeslazy.vscodium-devpodcontainers) if running containers locally (on your own Docker engine) from the editor.
  • (Optional) Remote container extensions for vscode:
    • mythreyak.open-remote-devcontainer
    • 3timeslazy.vscodium-devpodcontainers
    • ddorch.codium-devcontainer

Environments

This repository contains multiple development environments, organized into subdirectories.

1. OpenTofu Dev Environment (dev-opentofu)

A development environment for working with OpenTofu.

  • Features:
    • Custom image based off of MS's Ubuntu (26.04 aka resolute) image
    • OpenTofu CLI (installed and available on PATH)
    • Utilities: curl, git, jq, and wget
    • VSCodium extension: opentofu.vscode-opentofu for syntax highlighting, autocomplete, and formatting.
  • Start with DevPod:
    devpod up ./dev-opentofu

2. Go Dev Environment (dev-golang)

A development environment for Go development.

  • Features:
    • Go SDK (Official image)
    • VSCodium extension: golang.go for autocomplete, linting, formatting, and debugging.
  • Start with DevPod:
    devpod up ./dev-golang

Alternative: Using VSCodium Dev Containers Extension

If you prefer to run containers directly within VSCodium without the DevPod CLI:

  1. Open VSCodium.
  2. Open either the dev-opentofu or dev-golang subdirectory.
  3. Click the green indicator (bottom-left corner) and select Reopen in Container.

Usage Examples

OpenTofu

Once inside the dev-opentofu container, you can run standard tofu commands:

tofu --version
tofu init
tofu plan

Go

Once inside the dev-golang container, you can run standard Go commands:

go version
go run main.go

About

Want to work with devcontainers more, coz i'm fed up with setting up build envs I know too little about or don't know the useful utilities

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors