Skip to content

Commit 588760c

Browse files
chore: wip
1 parent 2196d2a commit 588760c

File tree

2 files changed

+52
-32
lines changed

2 files changed

+52
-32
lines changed

.devcontainer/compose.yaml

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,28 @@
1-
services:
2-
app:
3-
image: mcr.microsoft.com/devcontainers/go:1-1.24-bookworm
4-
depends_on:
5-
- registry
6-
# Overrides default command so things don't shut down after the process ends.
7-
command: sleep infinity
8-
network_mode: service:registry
9-
10-
registry:
11-
image: docker.io/registry:latest
1+
services:
2+
app:
3+
image: mcr.microsoft.com/devcontainers/go:1-1.24-bookworm
4+
depends_on:
5+
- registry.somedomain
6+
# Overrides default command so things don't shut down after the process ends.
7+
command: sleep infinity
8+
cap_add:
9+
- CAP_AUDIT_WRITE
10+
volumes:
11+
- certs:/certs
12+
- auth:/auth
13+
- data:/data
14+
- config:/config
15+
16+
registry.somedomain:
17+
image: docker.io/registry:latest
18+
volumes:
19+
- certs:/certs
20+
- auth:/auth
21+
- data:/var/lib/registry
22+
- config:/etc/distribution
23+
24+
volumes:
25+
certs:
26+
auth:
27+
data:
28+
config:

.devcontainer/devcontainer.json

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2-
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet-mssql
3-
{
4-
"name": "Kustomize",
5-
"dockerComposeFile": "compose.yaml",
6-
"service": "app",
7-
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
8-
9-
"features": {
10-
"ghcr.io/devcontainers/features/docker-outside-of-docker:1.6.5": {},
11-
"ghcr.io/dhoeric/features/oras:1": {}
12-
},
13-
14-
"customizations": {
15-
"vscode": {
16-
"extensions": [
17-
"redhat.vscode-yaml",
18-
]
19-
}
20-
},
21-
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet-mssql
3+
{
4+
"name": "Kustomize",
5+
"dockerComposeFile": "compose.yaml",
6+
"service": "app",
7+
"remoteEnv": {
8+
"REGISTRY_USERNAME": "docker",
9+
"REGISTRY_PASSWORD": "Oak38YhEZOggz7q_xVyeVJoQJXl7YQSW4nDs1mBRTTA",
10+
},
11+
12+
"features": {
13+
"ghcr.io/devcontainers/features/docker-outside-of-docker:1.6.5": {},
14+
"ghcr.io/dhoeric/features/oras:1": {}
15+
},
16+
17+
"customizations": {
18+
"vscode": {
19+
"extensions": [
20+
"redhat.vscode-yaml",
21+
]
22+
}
23+
},
24+
2225
}

0 commit comments

Comments
 (0)