From 20f162b3ce506c5e5a8ef7b5b83bdca7b9991c31 Mon Sep 17 00:00:00 2001 From: John Martin Date: Sat, 23 Nov 2024 04:29:20 +0000 Subject: [PATCH] feat(node-dind-devcontainer): add node dind devcontainer --- .../.devcontainer/devcontainer.json | 7 +++ .../node-dind-devcontainer/package.json | 4 ++ .../node-dind-devcontainer/project.json | 61 +++++++++++++++++++ release-config.json | 10 +++ release-manifest.json | 4 +- 5 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 devcontainer-images/node-dind-devcontainer/.devcontainer/devcontainer.json create mode 100644 devcontainer-images/node-dind-devcontainer/package.json create mode 100644 devcontainer-images/node-dind-devcontainer/project.json diff --git a/devcontainer-images/node-dind-devcontainer/.devcontainer/devcontainer.json b/devcontainer-images/node-dind-devcontainer/.devcontainer/devcontainer.json new file mode 100644 index 0000000..a997529 --- /dev/null +++ b/devcontainer-images/node-dind-devcontainer/.devcontainer/devcontainer.json @@ -0,0 +1,7 @@ +{ + "image": "ghcr.io/ebizbase/node-devcontainer:1.0.0", + "remoteUser": "vscode", + "features": { + "ghcr.io/devcontainers/features/docker-in-docker:2": {} + } +} diff --git a/devcontainer-images/node-dind-devcontainer/package.json b/devcontainer-images/node-dind-devcontainer/package.json new file mode 100644 index 0000000..c1c847c --- /dev/null +++ b/devcontainer-images/node-dind-devcontainer/package.json @@ -0,0 +1,4 @@ +{ + "name": "@ebizbase/node-dind-devcontainer", + "version": "1.0.0" +} diff --git a/devcontainer-images/node-dind-devcontainer/project.json b/devcontainer-images/node-dind-devcontainer/project.json new file mode 100644 index 0000000..dbdf4f6 --- /dev/null +++ b/devcontainer-images/node-dind-devcontainer/project.json @@ -0,0 +1,61 @@ +{ + "name": "node-dind-devcontainer", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "devcontainer-images/node-dind-devcontainer", + "projectType": "application", + "metadata": { + "$schema": "../../nx-plugins/nx-devcontainer/metadata.schema.json", + "version": "1.0.0", + "registries": [ + "docker.io", + "ghcr.io" + ], + "namespace": "ebizbase/node-dind-devcontainer", + "labels": { + "org.opencontainers.image.source": "https://github.com/ebizbase/dev-infras", + "org.opencontainers.image.description": "NodeJS devcontainer image for ebizbase", + "org.opencontainers.image.licenses": "MIT" + } + }, + "targets": { + "build": { + "executor": "@ebizbase/nx-internal:build-devcontainer-image", + "options": { + "tags": [ + "edge" + ] + } + }, + "test": { + "dependsOn": [ + "build" + ], + "executor": "nx:run-commands", + "options": { + "commands": [ + "docker run --rm ebizbase/node-dind-devcontainer:edge node --version", + "docker run --rm ebizbase/node-dind-devcontainer:edge docker --version" + ], + "parallel": false + } + }, + "publish": { + "executor": "@ebizbase/nx-internal:build-devcontainer-image", + "options": { + "push": true, + "tags": [ + "latest", + "{major}", + "{major}.{minor}", + "{major}.{minor}.{patch}" + ] + } + }, + "version": { + "executor": "@jscutlery/semver:version", + "options": { + "preset": "angular" + } + } + } +} diff --git a/release-config.json b/release-config.json index aadfa82..6154b24 100644 --- a/release-config.json +++ b/release-config.json @@ -76,6 +76,16 @@ "jsonpath": "$.metadata.version" } ] + }, + "devcontainer-images/node-dind-devcontainer": { + "release-type": "node", + "extra-files": [ + { + "type": "json", + "path": "project.json", + "jsonpath": "$.metadata.version" + } + ] } } } diff --git a/release-manifest.json b/release-manifest.json index ba5d6d8..b4b53a2 100644 --- a/release-manifest.json +++ b/release-manifest.json @@ -8,5 +8,7 @@ "devcontainer-features/install-npm-package-globally": "1.0.0", "devcontainer-images/base-devcontainer": "1.0.0", "devcontainer-images/node-devcontainer": "1.0.0", - "devcontainer-images/nx-devcontainer": "0.0.0" + "devcontainer-images/nx-devcontainer": "0.0.0", + "devcontainer-images/node-dind-devcontainer": "0.0.0" + }