From 783830d7a1a6032df4d976af1db9b3554610aa3d Mon Sep 17 00:00:00 2001 From: ruffsl Date: Sun, 5 May 2024 02:48:01 +0000 Subject: [PATCH] Install jq via apt-get feature --- .devcontainer/devcontainer.json | 7 +++++++ .devcontainer/on-create-command.sh | 2 -- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index de85a5e..4a73a36 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -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": {}, diff --git a/.devcontainer/on-create-command.sh b/.devcontainer/on-create-command.sh index 3291326..d2eed4b 100755 --- a/.devcontainer/on-create-command.sh +++ b/.devcontainer/on-create-command.sh @@ -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/