Skip to content

Commit

Permalink
Install jq via apt-get feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ruffsl committed May 5, 2024
1 parent 66085e4 commit 783830d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
"workspaceMount": "source=${localWorkspaceFolder},target=${containerWorkspaceFolder},type=bind",
"onCreateCommand": ".devcontainer/on-create-command.sh",
"postCreateCommand": ".devcontainer/post-create-command.sh",
"features": {
"ghcr.io/devcontainers-contrib/features/apt-get-packages:1": {
"packages": [
"jq",
]
},
},
"customizations": {
"vscode": {
"settings": {},
Expand Down
2 changes: 0 additions & 2 deletions .devcontainer/on-create-command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ set -eo pipefail

git config --global --add safe.directory "*"

apt update && apt install -y jq

COLCON_CI_URL=https://github.com/colcon/ci/archive/refs/heads/main.zip
curl -sSL $COLCON_CI_URL > /tmp/main.zip
unzip /tmp/main.zip -d /tmp/
Expand Down

0 comments on commit 783830d

Please sign in to comment.