From c7b5d41cf7144bc3921cb829958cff95828858d1 Mon Sep 17 00:00:00 2001 From: Taken Date: Mon, 15 Jan 2024 23:19:23 +0000 Subject: [PATCH] Added config and dockerfile for vscode dev containers --- .devcontainer/Dockerfile | 6 +++++ .devcontainer/devcontainer.json | 46 +++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..0b9882b --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,6 @@ +FROM node:20.9.0-alpine3.18 + +RUN apk add git fish openssh gnupg +RUN yarn global add typescript ts-node nodemon + +RUN mkdir -p /root/.ssh \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..f8c5135 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,46 @@ +{ + // "remoteUser": "vscode", + "name": "Illegitimate dev", + "build": { + "context": "..", + "dockerfile": "./Dockerfile" + }, + + "mounts": [ + "source=${localEnv:HOME}/.ssh/gitlab,target=/root/.ssh/gitlab,type=bind", + "source=${localEnv:HOME}/.ssh/config,target=/root/.ssh/config,type=bind", + "source=${localEnv:HOME}/.wakatime.cfg,target=/root/.wakatime.cfg,type=bind" + ], + + "postCreateCommand": "chmod 600 -R /root/.ssh", + "customizations": { + "vscode": { + "extensions": [ + "dbaeumer.vscode-eslint", + "eamodio.gitlens", + "tal7aouy.icons", + "oderwat.indent-rainbow", + "ms-vscode.vscode-typescript-next", + "mongodb.mongodb-vscode", + "quicktype.quicktype", + "esbenp.prettier-vscode", + "YoavBls.pretty-ts-errors", + "rangav.vscode-thunder-client", + "WakaTime.vscode-wakatime", + "gamunu.vscode-yarn" + ] + } + } + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": { } + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Uncomment the next line to run commands after the container is created. + + // Configure tool-specific properties. + // "customizations": {}, + +}