From e36be5f1f40a4be13f93428275d1eb63de3f29e6 Mon Sep 17 00:00:00 2001 From: Kenneth Date: Mon, 2 Jun 2025 23:24:14 +0000 Subject: [PATCH] add gitpod configs --- .devcontainer/Dockerfile | 12 ++++++++++++ .devcontainer/devcontainer.json | 33 +++++++++++++++++++++++++++++++++ .gitpod/automations.yaml | 22 ++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json create mode 100644 .gitpod/automations.yaml diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..41f1631 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,12 @@ +FROM oven/bun:debian + +# [Optional] Uncomment this section to install additional OS packages. +# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ +# && apt-get -y install --no-install-recommends + +# [Optional] Uncomment if you want to install an additional version of node using nvm +# ARG EXTRA_NODE_VERSION=10 +# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}" + +# [Optional] Uncomment if you want to install more global node modules +# RUN su node -c "npm install -g " diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..8efdbc9 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,33 @@ +{ + "name": "Node.js", + "build": { + "dockerfile": "Dockerfile" + }, + "features": { + "ghcr.io/devcontainers/features/common-utils:2": { + "installZsh": "true", + "username": "bun", + "upgradePackages": "true" + }, + "ghcr.io/devcontainers/features/git:1": { + "version": "latest", + "ppa": "false" + } + }, + // Configure tool-specific properties. + "customizations": { + // Configure properties specific to VS Code. + "vscode": { + // Add the IDs of extensions you want installed when the container is created. + "extensions": [ + "biomejs.biome" + ] + } + }, + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "yarn install", + // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. + "remoteUser": "bun" +} \ No newline at end of file diff --git a/.gitpod/automations.yaml b/.gitpod/automations.yaml new file mode 100644 index 0000000..83d0129 --- /dev/null +++ b/.gitpod/automations.yaml @@ -0,0 +1,22 @@ +tasks: + install-dependencies: + name: Install dependencies + command: | + bun install + triggeredBy: + - manual + - postDevcontainerStart + + web: + name: Run web + command: | + cd packages/web && bun run dev + triggeredBy: + - manual + + server: + name: Run server + command: | + cd packages/server && bun run dev + triggeredBy: + - manual