Skip to content

Commit 126da83

Browse files
committed
chore(devcontainer): update devcontainer setup
1 parent 1e4c7ff commit 126da83

File tree

2 files changed

+30
-5
lines changed

2 files changed

+30
-5
lines changed

.devcontainer/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# [Choice] Arch Linux version: latest
2+
ARG VARIANT="latest"
3+
FROM archlinux:${VARIANT}
4+
5+
# Adjust directory permissions
6+
RUN chmod 555 /srv/ftp && \
7+
chmod 755 /usr/share/polkit-1/rules.d/
8+
9+
# Initialize the pacman keyring and perform a full system upgrade
10+
RUN pacman-key --init && \
11+
pacman-key --populate archlinux && \
12+
pacman-key --populate archlinux && \
13+
pacman -Sy --needed --noconfirm archlinux-keyring && \
14+
pacman -Su --noconfirm
15+
16+
# Full system upgrade
17+
RUN pacman -Syu --noconfirm

.devcontainer/devcontainer.json

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"image": "archlinux:latest",
2+
"name": "Devcontainer-Features",
3+
"image": "debian:bullseye",
34
"customizations": {
45
"vscode": {
56
"settings": {
@@ -13,14 +14,21 @@
1314
]
1415
},
1516
"extensions": [
16-
"mads-hartmann.bash-ide-vscode"
17+
"mads-hartmann.bash-ide-vscode",
18+
"GitHub.copilot",
19+
"GitHub.copilot-chat",
20+
"github.vscode-github-actions"
1721
]
1822
}
1923
},
2024
"features": {
25+
"ghcr.io/devcontainers/features/common-utils:2": {
26+
"configureZshAsDefaultShell": true,
27+
"installOhMyZshConfig": false
28+
},
2129
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
22-
"ghcr.io/devcontainers/features/common-utils:2": {}
30+
"ghcr.io/devcontainers/features/node:1": {}
2331
},
24-
"remoteUser": "vscode",
25-
"updateContentCommand": "npm install -g @devcontainers/cli"
32+
"postCreateCommand": "npm install -g @devcontainers/cli semver",
33+
"remoteUser": "vscode"
2634
}

0 commit comments

Comments
 (0)