Initial devcontainer setup
This commit is contained in:
parent
13ae7789a5
commit
5ba1ca1464
|
@ -0,0 +1,9 @@
|
||||||
|
FROM library/node:lts-bookworm
|
||||||
|
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
RUN apt update \
|
||||||
|
&& apt install -y --no-install-recommends sudo \
|
||||||
|
&& apt autoremove -y \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
|
&& echo "node ALL=(ALL) NOPASSWD: ALL" >/etc/sudoers.d/node \
|
||||||
|
&& chmod 0440 /etc/sudoers.d/node
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"name": "Basic Node.js",
|
||||||
|
"build": { "dockerfile": "Dockerfile" },
|
||||||
|
"remoteUser": "node",
|
||||||
|
"features": {
|
||||||
|
"ghcr.io/devcontainers/features/python:1": {
|
||||||
|
"installTools": true,
|
||||||
|
"version": "3.11"
|
||||||
|
},
|
||||||
|
"ghcr.io/devcontainers-contrib/features/curl-apt-get:1": {},
|
||||||
|
"ghcr.io/jungaretti/features/ripgrep:1": {},
|
||||||
|
"ghcr.io/warrenbuckley/codespace-features/sqlite:1": {}
|
||||||
|
}
|
||||||
|
}
|
|
@ -6,3 +6,13 @@
|
||||||
*.TXT eol=crlf
|
*.TXT eol=crlf
|
||||||
*.diz eol=crlf
|
*.diz eol=crlf
|
||||||
*.DIZ eol=crlf
|
*.DIZ eol=crlf
|
||||||
|
|
||||||
|
# Don't mess with shell script line endings
|
||||||
|
*.sh text eol=lf
|
||||||
|
|
||||||
|
# Same thing for optutil.js which functions as a shell script
|
||||||
|
optutil.js text eol=lf
|
||||||
|
|
||||||
|
# The devcontainer is also unix
|
||||||
|
.devcontainer/Dockerfile text eol=lf
|
||||||
|
.devcontainer/devcontainer.json text eol=lf
|
|
@ -11,4 +11,3 @@ mail/
|
||||||
node_modules/
|
node_modules/
|
||||||
docs/_site/
|
docs/_site/
|
||||||
docs/.sass-cache/
|
docs/.sass-cache/
|
||||||
.vscode/
|
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Launch Program",
|
||||||
|
"skipFiles": [
|
||||||
|
"<node_internals>/**"
|
||||||
|
],
|
||||||
|
"program": "${workspaceFolder}/main.js"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue