Skip to content

Commit

Permalink
added node-asdf and ruby-asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbraun89 authored Sep 30, 2023
1 parent 8c71f6d commit 661be58
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
41 changes: 41 additions & 0 deletions feature_definitions/node-asdf/feature-definition.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"id": "node-asdf",
"version": "0.0.1",
"name": "Node.js (via asdf)",
"documentationURL": "http://github.com/devcontainers-contrib/features/tree/main/src/node-asdf",
"description": "Installs Node.js via asdf",
"options": {
"version": {
"default": "latest",
"description": "Select the version to install.",
"proposals": [
"latest"
],
"type": "string"
}
},
"installsAfter": [
"ghcr.io/devcontainers-contrib/features/asdf-package"
],
"dependencies": [
{
"feature": "ghcr.io/devcontainers-contrib/features/asdf-package:1.0.8",
"options": {
"plugin": "nodejs",
"version": "$options.version"
}
}
],
"install_command": "echo 'Done!'",
"test_scenarios": [
{
"name": "test",
"image": "mcr.microsoft.com/devcontainers/base:debian",
"test_commands": [
"node --version"
],
"options": {},
"features": {}
}
]
}
47 changes: 47 additions & 0 deletions feature_definitions/ruby-asdf/feature-definition.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"id": "ruby-asdf",
"version": "0.0.1",
"name": "Ruby (via asdf)",
"documentationURL": "http://github.com/devcontainers-contrib/features/tree/main/src/ruby-asdf",
"description": "Installs Ruby via asdf",
"options": {
"version": {
"default": "latest",
"description": "Select the version to install.",
"proposals": [
"latest"
],
"type": "string"
}
},
"installsAfter": [
"ghcr.io/devcontainers-contrib/features/asdf-package"
],
"dependencies": [
{
"feature": "ghcr.io/devcontainers-contrib/features/apt-get-packages:1.0.6",
"options": {
"packages": "curl,ca-certificates,software-properties-common,build-essential,gnupg2,libreadline-dev,procps,dirmngr,gawk,autoconf,automake,bison,libffi-dev,libgdbm-dev,libncurses5-dev,libsqlite3-dev,libtool,libyaml-dev,pkg-config,sqlite3,zlib1g-dev,libgmp-dev,libssl-dev"
}
},
{
"feature": "ghcr.io/devcontainers-contrib/features/asdf-package:1.0.8",
"options": {
"plugin": "ruby",
"version": "$options.version"
}
}
],
"install_command": "echo 'Done!'",
"test_scenarios": [
{
"name": "test",
"image": "mcr.microsoft.com/devcontainers/base:debian",
"test_commands": [
"ruby --version"
],
"options": {},
"features": {}
}
]
}

0 comments on commit 661be58

Please sign in to comment.