This repository contains a collection of Dev Container Templates that can be used to set up development environments. The templates follow the Dev Container Template distribution specification.
A development container template for Go development with common tools and utilities pre-configured.
├── src
│ └── go-toolkit # Go development environment template
│ ├── .devcontainer # Contains dev container configuration
│ ├── devcontainer-template.json
│ └── NOTES.md # Additional template documentation
├── test # Test files for templates
└── .github
└── workflows # GitHub Actions workflows for testing and release
The templates in this repository are published to GitHub Container Registry (GHCR). You can use the devcontainer-cli
to apply the template:
for example on your /workspace
directory, create a new folder called go-hello-world
devcontainer templates apply --workspace-folder ./go-hello-world \
--template-id ghcr.io/irfansofyana/devcontainer-templates/go-toolkit:latest
It will create the .devcontainer
folder under ./go-hello-world
.
To open it on Dev Container, you can go to ./go-hello-world
directory and open it using the Dev Container extension in Visual Studio Code.
This repository includes automated tests for the templates. You can run the tests locally using:
./.github/actions/smoke-test/build.sh ${TEMPLATE-ID}
./.github/actions/smoke-test/test.sh ${TEMPLATE-ID}
- Fork this repository
- Create a new branch for your changes
- Make your changes
- Submit a pull request
This project is licensed under the terms specified in the LICENSE file.