Files
VS-Code-CMake-helper/scripts/docker.sh
T
093cf7ee9c
Build / build (push) Successful in 9m40s
VS Code CMake Helper: first implementation (#1)
CMake the way CLion does it (profiles and presets, targets, run and debug
configurations, CTest)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Tomáš Černík <Tom.cernik@gmail.com>
Reviewed-on: #1
2026-10-26 17:56:59 +00:00

11 lines
501 B
Bash
Executable File

#!/bin/sh
# Runs a command in the development image, in this folder, as you (so the
# files it makes are yours): ./scripts/docker.sh npm run package
# Without a command: a shell. The image is (re)built when the Dockerfile changes.
set -e
root=$(cd "$(dirname "$0")/.." && pwd)
image=vs-code-cmake-helper-dev
docker build -q -t "$image" "$root" >/dev/null
tty=; [ -t 0 ] && tty=-it
exec docker run --rm $tty -u "$(id -u):$(id -g)" -e HOME=/tmp -v "$root:/workspace" -w /workspace "$image" "${@:-bash}"