Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "aptly - Go 1.26",
"image": "mcr.microsoft.com/devcontainers/go:2-1.26-bookworm",
Comment thread
Hybrid512 marked this conversation as resolved.
Resolved
"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
}
}
}
}
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -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)
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading