Skip to content

Commit b7ea4a0

Browse files
committed
chore(global): update devcontainer and readme
Signed-off-by: Andrei Jiroh Halili (RecapTime.dev) <ajhalili2006@crew.recaptime.dev>
1 parent 5ea8b46 commit b7ea4a0

File tree

3 files changed

+73
-25
lines changed

3 files changed

+73
-25
lines changed
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
FROM mcr.microsoft.com/devcontainers/base:bookworm
1+
FROM golang:bookworm as xcaddy-buildkit
22

3-
USER root
3+
RUN go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest \
4+
&& /go/bin/xcaddy build \
5+
--with github.com/caddy-dns/cloudflare \
6+
--with github.com/caddy-dns/vercel \
7+
--with github.com/caddy-dns/netlify \
8+
--with github.com/ss098/certmagic-s3 \
9+
--output /go/bin/caddy
410

5-
RUN wget https://github.com/caddyserver/xcaddy/releases/download/v0.4.2/xcaddy_0.4.2_linux_amd64.deb \
6-
-O /tmp/xcaddy.deb && apt install xcaddy --yes
11+
FROM mcr.microsoft.com/devcontainers/base:bookworm as base
12+
13+
COPY --from=xcaddy-buildkit /go/bin/caddy /usr/local/bin/caddy

.devcontainer/devcontainer.json

Lines changed: 57 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,70 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-in-docker
33
{
4-
"name": "Docker in Docker",
4+
"name": "Docker in Docker - proxyparty",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
66
"build": {
77
"dockerfile": "./devcontainer.Dockerfile"
88
},
99

1010
"features": {
11-
"ghcr.io/devcontainers/features/docker-in-docker:2": {
12-
"version": "latest",
13-
"enableNonRootDocker": "true",
14-
"moby": "false"
15-
},
16-
"ghcr.io/devcontainers/features/go:1": {},
17-
"ghcr.io/devcontainers-contrib/features/caddy:1": {},
11+
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
1812
"ghcr.io/joshuanianji/devcontainer-features/gcloud-cli-persistence:1": {},
19-
"ghcr.io/bartventer/arch-devcontainer-features/gcloud-cli:1": {}
20-
}
21-
22-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
23-
// "forwardPorts": [],
24-
25-
// Use 'postCreateCommand' to run commands after the container is created.
26-
// "postCreateCommand": "docker --version",
13+
"ghcr.io/devcontainers/features/github-cli:1": {},
14+
"ghcr.io/devcontainers/features/node:1": {},
15+
"ghcr.io/joshuanianji/devcontainer-features/github-cli-persistence:1": {},
16+
"ghcr.io/prulloac/devcontainer-features/deno:1": {},
17+
"ghcr.io/dhoeric/features/google-cloud-cli:1": {}
18+
},
2719

2820
// Configure tool-specific properties.
29-
// "customizations": {},
30-
31-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
32-
// "remoteUser": "root"
21+
"customizations": {
22+
"vscode": {
23+
"settings": {
24+
"git.alwaysSignOff": true
25+
},
26+
"extensions": [
27+
"matthewpi.caddyfile-support",
28+
"zamerick.vscode-caddyfile-syntax",
29+
"hangxingliu.vscode-systemd-support",
30+
"coolbear.systemd-unit-file"
31+
]
32+
},
33+
"codespaces": {
34+
"repositories": {
35+
"recaptime-dev/proxyparty-caddy": {
36+
"permissions": {
37+
"actions": "write",
38+
"workflows": "write",
39+
"contents": "write",
40+
"checks": "read",
41+
"deployments": "read",
42+
"statuses": "read",
43+
"issues": "write",
44+
"pull_requests": "write",
45+
"packages": "write",
46+
"repository_projects": "write"
47+
}
48+
},
49+
"recaptime-dev/infraops": {
50+
"permissions": {
51+
"issues": "write",
52+
"contents": "read",
53+
"packages": "write",
54+
"repository_projects": "write"
55+
}
56+
},
57+
"hackclub/dns": {
58+
"permissions": {
59+
"issues": "write",
60+
"contents": "read",
61+
"pull_requests": "read",
62+
"statuses": "read",
63+
"checks": "read",
64+
"actions": "read"
65+
}
66+
}
67+
}
68+
}
69+
}
3370
}

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ or share your spare compute credits (or donate directly) on
1010
[his Railway profile](https://railway.app/u/ajhalili2006) if you like to
1111
keep this maintained and support his open-source work.
1212

13-
## Setup / Self-host
13+
## Using the service
14+
15+
TBD
16+
17+
## Self-hosting
1418

1519
See `SETUP.md` for a more detailed document about our setup and to help you
1620
self-host them for your own configuration.

0 commit comments

Comments
 (0)