Call setup during devcontainer create (#46224)

This commit is contained in:
Paulus Schoutsen 2021-02-08 16:16:40 +01:00 committed by GitHub
parent 81c88cd639
commit e20a814926
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 20 deletions

View file

@ -6,10 +6,20 @@ set -e
cd "$(dirname "$0")/.."
# Add default vscode settings if not existing
SETTINGS_FILE=./.vscode/settings.json
SETTINGS_TEMPLATE_FILE=./.vscode/settings.default.json
if [ ! -f "$SETTINGS_FILE" ]; then
echo "Copy $SETTINGS_TEMPLATE_FILE to $SETTINGS_FILE."
cp "$SETTINGS_TEMPLATE_FILE" "$SETTINGS_FILE"
fi
mkdir -p config
python3 -m venv venv
source venv/bin/activate
if [ ! -n "$DEVCONTAINER" ];then
python3 -m venv venv
source venv/bin/activate
fi
script/bootstrap