From 9a477da6aeaa50a72b303b040ad04ee92f0de000 Mon Sep 17 00:00:00 2001 From: Aleksandr Ilin Date: Thu, 10 Aug 2023 08:06:26 +0000 Subject: [PATCH] Configure and document `pkg`; Fixes #614 --- .gitignore | 1 + README.md | 16 ++++++++++++++++ package.json | 9 +++++++++ 3 files changed, 26 insertions(+) diff --git a/.gitignore b/.gitignore index 7b270dea1..4a746c3f5 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ output *.testMarker src/test/container-features/configs/temp_lifecycle-hooks-alternative-order test-secrets-temp.json +/cli-* diff --git a/README.md b/README.md index d59523f83..869f19a97 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,22 @@ Verify you can run the CLI and see its help text: node devcontainer.js --help ``` +### Packaging + +Compile + +```bash +npm install -g pkg +pkg . +``` + +Ship + +```bash +scp cli-linux example.com:devcontainer +ssh example.com sudo mv -v devcontainer /opt/devcontainer +``` + ## Specification The dev container CLI is part of the [Development Containers Specification](https://github.com/devcontainers/spec). This spec seeks to find ways to enrich existing formats with common development specific settings, tools, and configuration while still providing a simplified, un-orchestrated single container option – so that they can be used as coding environments or for continuous integration and testing. diff --git a/package.json b/package.json index 127586195..7bde675f5 100644 --- a/package.json +++ b/package.json @@ -109,5 +109,14 @@ "vscode-dev-containers": "https://github.com/microsoft/vscode-dev-containers/releases/download/v0.245.2/vscode-dev-containers-0.245.2.tgz", "vscode-uri": "^3.0.7", "yargs": "~17.7.1" + }, + "pkg": { + "scripts": [ + "scripts/updateUID.Dockerfile" + ], + "assets": [ + "node_modules/vscode-dev-containers/package.json", + "dist/node_modules/vscode-dev-containers/container-features" + ] } }