From c5edafdbc8a22980e3b988fa347decf4d87d37ad Mon Sep 17 00:00:00 2001 From: Daniel Braun Date: Thu, 4 Jan 2024 11:12:02 +0000 Subject: [PATCH] added devcontainer cli --- .../devcontainers-cli/feature-definition.json | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 feature_definitions/devcontainers-cli/feature-definition.json diff --git a/feature_definitions/devcontainers-cli/feature-definition.json b/feature_definitions/devcontainers-cli/feature-definition.json new file mode 100644 index 00000000..c6d1a243 --- /dev/null +++ b/feature_definitions/devcontainers-cli/feature-definition.json @@ -0,0 +1,43 @@ +{ + "id": "devcontainers-cli", + "version": "1.0.0", + "name": "devcontainers CLI (via npm)", + "documentationURL": "http://github.com/devcontainers-contrib/features/tree/main/src/devcontainers-cli", + "description": "The devcontainers CLI, which configures devcontainers from devcontainer.json. Requires the Docker client and access to a Docker engine socket (e.g. by mounting the host's Docker socket into the container)", + "options": { + "version": { + "default": "latest", + "description": "Select the version to install.", + "proposals": [ + "latest" + ], + "type": "string" + } + }, + "installsAfter": [ + "ghcr.io/devcontainers-contrib/features/npm-package", + "ghcr.io/devcontainers/features/node", + "ghcr.io/devcontainers/features/docker-outside-of-docker" + ], + "dependencies": [ + { + "feature": "ghcr.io/devcontainers-contrib/features/npm-package:1.0.3", + "options": { + "package": "@devcontainers/cli", + "version": "$options.version" + } + } + ], + "install_command": "echo 'Done!'", + "test_scenarios": [ + { + "name": "test", + "image": "mcr.microsoft.com/devcontainers/base:debian", + "test_commands": [ + "devcontainer --version" + ], + "options": {}, + "features": {} + } + ] +} \ No newline at end of file