This repo provides a VSCode Devcontainer for the Clojure language
- Create a
.devcontainer
folder in the root of your repository - Create a
devcontainer.json
file inside the folder you created - Copy the code example and modify it to your needs
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/chrisenytc/clojure-devcontainer/tree/main/src/clojure
{
"name": "Example",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "ghcr.io/chrisenytc/clojure-devcontainer/clojure:latest",
// Run args
"runArgs": ["--name", "${localEnv:USER}_devcontainer"],
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "git config --global --add safe.directory /workspaces/example",
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": []
}
}
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
Bug reports and pull requests are welcome on GitHub at https://github.com/chrisenytc/clojure-devcontainer. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
- Fork it chrisenytc/clojure-devcontainer
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am "Add some feature"
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
If you have any problem or suggestion please open an issue here.
Check here.