From 7437a1b16125569e237cf74e0ee34c2a942e4e54 Mon Sep 17 00:00:00 2001 From: Helmut Hoffer von Ankershoffen Date: Wed, 25 Dec 2024 14:37:42 +0100 Subject: [PATCH] chore(devcontainer): polish --- .devcontainer/devcontainer.json | 3 ++- .devcontainer/onCreateCommand | 9 +++++++++ .devcontainer/postCreateCommand | 7 ++----- 3 files changed, 13 insertions(+), 6 deletions(-) create mode 100755 .devcontainer/onCreateCommand diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 0da6bd5..be5a81c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -10,6 +10,7 @@ "ghcr.io/devcontainers/features/java:1": {}, "ghcr.io/devcontainers/features/node:1": {} }, + "onCreateCommand": ".devcontainer/onCreateCommand", "postCreateCommand": ".devcontainer/postCreateCommand", "customizations": { // Configure properties specific to VS Code. @@ -41,4 +42,4 @@ 5172, 8080 ] -} +} \ No newline at end of file diff --git a/.devcontainer/onCreateCommand b/.devcontainer/onCreateCommand new file mode 100755 index 0000000..7f4390b --- /dev/null +++ b/.devcontainer/onCreateCommand @@ -0,0 +1,9 @@ +#!/bin/sh + +echo "onCreateCommand: start" +git config --global --add safe.directory /workspaces/starbridge +rm -rf .nox +rm -rf .venv +uv sync --frozen +uv run pre-commit install +echo "onCreateCommand: end" diff --git a/.devcontainer/postCreateCommand b/.devcontainer/postCreateCommand index 1029bfb..a3eff5f 100755 --- a/.devcontainer/postCreateCommand +++ b/.devcontainer/postCreateCommand @@ -1,7 +1,4 @@ #!/bin/sh -git config --global --add safe.directory /workspaces/starbridge -rm -rf .nox -rm -rf .venv -uv sync --frozen -uv run pre-commit install +echo "postCreateCommand:start" +echo "postCreateCommand:end" \ No newline at end of file