1
0
mirror of https://github.com/bitwarden/server synced 2026-02-10 05:30:02 +00:00

PM-31106: Dev container improvements (#6651)

* Add rust feature

* Give the community create command the non-interactive treatment

* Add ability to load custom root CA

* Update .devcontainer/community_dev/postCreateCommand.sh

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>

* Update .devcontainer/community_dev/postCreateCommand.sh

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>

---------

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
This commit is contained in:
Justin Baur
2026-01-23 16:23:45 -05:00
committed by GitHub
parent 80d05eef07
commit 866ba6609d
5 changed files with 59 additions and 16 deletions

View File

@@ -9,7 +9,8 @@
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "16"
}
},
"ghcr.io/devcontainers/features/rust:1": {}
},
"mounts": [
{
@@ -24,6 +25,7 @@
"extensions": ["ms-dotnettools.csdevkit"]
}
},
"onCreateCommand": "bash .devcontainer/internal_dev/onCreateCommand.sh",
"postCreateCommand": "bash .devcontainer/internal_dev/postCreateCommand.sh",
"forwardPorts": [1080, 1433, 3306, 5432, 10000, 10001, 10002],
"portsAttributes": {

View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
export REPO_ROOT="$(git rev-parse --show-toplevel)"
file="$REPO_ROOT/dev/custom-root-ca.crt"
if [ -e "$file" ]; then
echo "Adding custom root CA"
sudo cp "$file" /usr/local/share/ca-certificates/
sudo update-ca-certificates
else
echo "No custom root CA found, skipping..."
fi