diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..ebb94e07e --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,40 @@ +{ + "name": "aptly - Go 1.26", + "image": "mcr.microsoft.com/devcontainers/go:2-1.26-bookworm", + "remoteUser": "vscode", + "updateRemoteUserUID": true, + "runArgs": ["--network=host"], + "initializeCommand": "mkdir -p \"${localEnv:HOME}/.codex\" \"${localEnv:HOME}/.claude\"", + "mounts": [ + "source=/etc/ssl/certs/ca-certificates.crt,target=/etc/ssl/certs/ca-certificates.crt,type=bind,readonly", + "source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind", + "source=${localEnv:HOME}/.codex,target=/home/vscode/.codex,type=bind", + "source=${localEnv:HOME}/.claude,target=/home/vscode/.claude,type=bind" + ], + "containerEnv": { + "HTTP_PROXY": "${localEnv:HTTP_PROXY}", + "HTTPS_PROXY": "${localEnv:HTTPS_PROXY}", + "NO_PROXY": "${localEnv:NO_PROXY}", + "http_proxy": "${localEnv:http_proxy}", + "https_proxy": "${localEnv:https_proxy}", + "no_proxy": "${localEnv:no_proxy}" + }, + "postCreateCommand": "go mod download", + "forwardPorts": [3142], + "portsAttributes": { + "3142": { + "label": "aptly development server" + } + }, + "customizations": { + "vscode": { + "extensions": [ + "golang.Go" + ], + "settings": { + "go.toolsManagement.autoUpdate": true, + "go.useLanguageServer": true + } + } + } +} diff --git a/AUTHORS b/AUTHORS index 8785e7f69..3204f1f55 100644 --- a/AUTHORS +++ b/AUTHORS @@ -89,4 +89,5 @@ List of contributors, in chronological order: * James Munson (https://github.com/jmunson) * Luan Dang (https://github.com/luanmdang) * Martin Simon (https://github.com/barnumbirr) +* Walid Moghrabi (https://github.com/Hybrid512) * Nathan Gray (https://github.com/NathanGray-ChurchillNavigation) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 005f4dabe..90cb14b68 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -105,6 +105,10 @@ To build the development docker image, run: make docker-image ``` +#### Working with VSCode and devcontainers + +A ready-to-use [Dev Container](https://containers.dev/) configuration is provided in `.devcontainer/devcontainer.json`. To use it, open the repository in Visual Studio Code (or another Dev Container-compatible IDE) and choose to reopen the project in the container; the IDE will then build and start the configured development environment. + #### Build aptly To build the aptly in the development docker container, run: