From c188a3ad2615a9d8ed4ec100e295a99456e97ad7 Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Fri, 17 Apr 2026 14:50:57 +0000 Subject: [PATCH] add dev container --- devcontainer.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/devcontainer.sh b/devcontainer.sh index 32908a9e..ba35e7f0 100644 --- a/devcontainer.sh +++ b/devcontainer.sh @@ -3,7 +3,7 @@ # dc.sh — devcontainer helper for this repo # # Usage: -# devcontainer.sh +# ./devcontainer.sh # # Configs: backend | asset_list # Commands: up, shell, down, rebuild @@ -12,15 +12,15 @@ # so it's safe to call cold. # # Examples: -# ./scripts/dc.sh backend shell # up + exec bash -# ./scripts/dc.sh asset_list up -# ./scripts/dc.sh backend rebuild -# ./scripts/dc.sh backend down +# ./devcontainer.sh backend shell # up + exec bash +# ./devcontainer.sh asset_list up +# ./devcontainer.sh backend rebuild +# ./devcontainer.sh backend down set -euo pipefail SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" -REPO_ROOT="$(cd -- "${SCRIPT_DIR}/.." &>/dev/null && pwd)" +REPO_ROOT="${SCRIPT_DIR}" VALID_CONFIGS=(backend asset_list) VALID_COMMANDS=(up shell down rebuild)