Skip to content

Commit d4a266a

Browse files
committed
.devcontainer: Added
Implement a dev container to make contributing easier, adding docker-in-docker for building images locally, and nektos/act for testing GH actions locally.
1 parent c2c67e0 commit d4a266a

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.devcontainer/Dockerfile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ARG VARIANT=5-bookworm
2+
FROM perl:${VARIANT}
3+
4+
COPY cpanfile /tmp/cpanfile
5+
RUN cpm install -g --with-develop --cpanfile /tmp/cpanfile \
6+
&& rm -rf /root/.perl-cpm /tmp/cpanfile

.devcontainer/devcontainer.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"build": {
3+
"dockerfile": "./Dockerfile",
4+
"context": ".."
5+
},
6+
"features": {
7+
"ghcr.io/devcontainers/features/common-utils:2": {
8+
"configureZshAsDefaultShell": "true"
9+
},
10+
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
11+
"ghcr.io/devcontainers/features/github-cli:1": {},
12+
"ghcr.io/dhoeric/features/act:1": {}
13+
},
14+
"customizations": {
15+
"vscode": {
16+
"settings": {
17+
"files.associations": {
18+
"cpanfile": "cpanfile"
19+
}
20+
},
21+
"extensions": [
22+
"bscan.perlnavigator",
23+
"bayashi.perlcpanfile",
24+
"stkb.rewrap",
25+
"GitHub.vscode-pull-request-github",
26+
"GitHub.vscode-github-actions"
27+
]
28+
}
29+
},
30+
"remoteUser": "vscode"
31+
}

0 commit comments

Comments
 (0)