Skip to content

Commit

Permalink
chore(devcontainer): polish
Browse files Browse the repository at this point in the history
  • Loading branch information
helmut-hoffer-von-ankershoffen committed Dec 25, 2024
1 parent 443a67b commit 7437a1b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -41,4 +42,4 @@
5172,
8080
]
}
}
9 changes: 9 additions & 0 deletions .devcontainer/onCreateCommand
Original file line number Diff line number Diff line change
@@ -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"
7 changes: 2 additions & 5 deletions .devcontainer/postCreateCommand
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 7437a1b

Please sign in to comment.