Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
cirolosapio committed Oct 3, 2023
1 parent 073a8aa commit 9bf5ace
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 7 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"name": "alpine-docker",
"id": "alpine-docker",
"version": "0.0.5",
"description": "Installs docker and docker-compose on alpine",
"documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-docker",
"name": "alpine-docker-outside-of-docker",
"id": "alpine-docker-outside-of-docker",
"version": "0.0.6",
"description": "Re-use the host docker socket, adding the Docker CLI to alpine container",
"documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-docker-outside-of-docker",
"legacyIds": [
"alpine-docker"
],
"options": {
"hostDockerGid": {
"type": "string",
Expand Down
File renamed without changes.
21 changes: 19 additions & 2 deletions src/alpine-node/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
{
"name": "alpine-node",
"id": "alpine-node",
"version": "0.0.1",
"version": "0.0.2",
"description": "Installs node and npm on alpine",
"documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-node"
"documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-node",
"options": {
"corepack": {
"type": "boolean",
"default": true,
"description": "Enable corepack"
},
"antfuNi": {
"type": "boolean",
"default": true,
"description": "Install @antfu/ni globally"
},
"ts-node": {
"type": "boolean",
"default": true,
"description": "Install ts-node"
}
}
}
13 changes: 13 additions & 0 deletions src/alpine-node/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,17 @@ echo "Activating feature 'alpine-node'"

apk --no-cache add nodejs npm

if [[ $COREPACK == "true" ]]; then
npm i -g corepack
corepack enable
fi

if [[ $ANTFUNI == "true" ]]; then
npm i -g @antfu/ni
fi

if [[ $TSNODE == "true" ]]; then
npm install -g typescript ts-node
fi

echo 'Done!'

0 comments on commit 9bf5ace

Please sign in to comment.