Skip to content

Commit 4d7fa9d

Browse files
committed
👌 IMPROVE: devcontainer with addons, fixed copy_to_release script
1 parent 90853d6 commit 4d7fa9d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.devcontainer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"containerEnv": {
99
"WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}"
1010
},
11-
"extensions": ["timonwong.shellcheck", "esbenp.prettier-vscode","ahmadawais.emoji-log-vscode","GitHub.copilot","ms-python.python","ms-python.debugpy","ms-python.vscode-pylance"],
11+
"extensions": ["timonwong.shellcheck", "esbenp.prettier-vscode","ahmadawais.emoji-log-vscode","GitHub.copilot","ms-python.python","ms-python.debugpy","ms-python.vscode-pylance","donjayamanne.githistory"],
1212
"mounts": ["type=volume,target=/var/lib/docker"],
1313
"settings": {
1414
"terminal.integrated.profiles.linux": {
@@ -21,5 +21,7 @@
2121
"editor.formatOnSave": true,
2222
"editor.formatOnType": true,
2323
"files.trimTrailingWhitespace": true
24-
}
24+
},
25+
// Führt Befehle innerhalb des Containers aus, nachdem er erstellt wurde, aber bevor er gestartet wird
26+
"postCreateCommand": "apt-get install python3 python3-pip python3-venv -y"
2527
}

copy_to_release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ target_dir="GridboxConnectorAddon"
88
rsync -av --delete --exclude='config.yaml' --exclude='build.yaml' --exclude='__pycache__' --exclude='.pytest_cache' $src_dir/ $target_dir/
99

1010
yaml_datei="GridboxConnectorAddon/config.yaml"
11-
current_version=$(yq e '.version' $yaml_datei)
11+
current_version=$(yq -e '.version' $yaml_datei)
1212
echo "Current version: $current_version"
1313
new_version=$(jq -r '.version' GridboxConnectorAddon/rootfs/share/cloudSettings.json)
1414
echo "New version: $new_version"
1515

1616
# Update the version in the config.yaml file
1717

18-
# sed -i "s/version: \"$current_version\"/version: \"$new_version\"/g" $yaml_datei
19-
sed -i "" "s/version: \"$current_version\"/version: \"$new_version\"/g" $yaml_datei
18+
sed -i "s/version: \"$current_version\"/version: \"$new_version\"/g" $yaml_datei
19+
#sed -i "" "s/version: \"$current_version\"/version: \"$new_version\"/g" $yaml_datei

0 commit comments

Comments
 (0)