From 2605bfac7aa1d73b6cd1731a5e472a6d196fbaa0 Mon Sep 17 00:00:00 2001 From: Marais Rossouw Date: Tue, 27 May 2025 13:21:37 +1000 Subject: [PATCH] feat: setup licensed on the codespace --- .devcontainer/devcontainer.json | 5 +++-- .devcontainer/post-create | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100755 .devcontainer/post-create diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 0023691..b08e1ab 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,7 +1,7 @@ { "name": "GitHub Actions (TypeScript)", "image": "mcr.microsoft.com/devcontainers/typescript-node:20", - "postCreateCommand": "npm install", + "postCreateCommand": ".devcontainer/post-create", "customizations": { "codespaces": { "openFiles": ["README.md"] @@ -36,6 +36,7 @@ }, "features": { "ghcr.io/devcontainers/features/github-cli:1": {}, - "ghcr.io/devcontainers-contrib/features/prettier:1": {} + "ghcr.io/devcontainers-contrib/features/prettier:1": {}, + "ghcr.io/devcontainers/features/ruby:1": {} } } diff --git a/.devcontainer/post-create b/.devcontainer/post-create new file mode 100755 index 0000000..ca64d62 --- /dev/null +++ b/.devcontainer/post-create @@ -0,0 +1,15 @@ +#!/bin/bash + +set -eux + +# Setup licensed +sudo apt update +sudo apt install -y \ + cmake\ + pkg-config + +gem install licensed + +# NPM install +npm install +