GitHub - Adaptavist/devcontainer-features (original) (raw)
Dev Container Features
This a collection of dev container features we use at Adaptavist that didn't already exist.
atlassian-forge
This installs theAtlassian Forge CLIglobally via npm.
Example devcontainer.json:
{ "image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": { "ghcr.io/adaptavist/devcontainer-features/atlassian-forge:1": { "version": "latest" }, "ghcr.io/devcontainers/features/docker-in-docker:2": {} },
"containerEnv": { "FORGE_API_TOKEN": "${localEnv:FORGE_API_TOKEN}", "FORGE_EMAIL": "${localEnv:FORGE_EMAIL}" } }
You'll need to login to forge, which can be done manually within the container using forge login, or you can set FORGE_API_TOKEN
and FORGE_EMAIL
locally (to be inherited by the container).
To check your login:
If you want to make use offorge tunnel, you'll need to add the docker-in-docker feature as shown in the example_devcontainer.json_ above.