From 22bb1a0bfa248113cab9997ba99bb5131f95f349 Mon Sep 17 00:00:00 2001 From: zramsay Date: Mon, 3 Apr 2023 16:41:07 -0400 Subject: [PATCH 1/2] key missing line Former-commit-id: 358c7ea168038784d0b08618ace23240ce0d68df --- app/data/stacks/build-support/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/app/data/stacks/build-support/README.md b/app/data/stacks/build-support/README.md index 72001518..e3993402 100644 --- a/app/data/stacks/build-support/README.md +++ b/app/data/stacks/build-support/README.md @@ -23,6 +23,7 @@ $ laconic-so --stack build-support build-containers --exclude cerc/builder-gerbi ``` $ laconic-so --stack package-registry setup-repositories +$ laconic-so --stack package-registry build-containers $ laconic-so --stack package-registry deploy up [+] Running 3/3 ⠿ Network laconic-aecc4a21d3a502b14522db97d427e850_gitea Created 0.0s From 5a27a94a7df4411c07bd2eddfdce5b0d79d8434a Mon Sep 17 00:00:00 2001 From: zramsay Date: Thu, 6 Apr 2023 19:28:27 -0400 Subject: [PATCH 2/2] more little updates Former-commit-id: 579fa6ff6632c6b73831e479e5642ddaa4610637 --- app/data/stacks/build-support/README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/data/stacks/build-support/README.md b/app/data/stacks/build-support/README.md index e3993402..b4090d76 100644 --- a/app/data/stacks/build-support/README.md +++ b/app/data/stacks/build-support/README.md @@ -12,10 +12,9 @@ To use a user-supplied registry set these environment variables: Leave `CERC_NPM_REGISTRY_URL` un-set to use the local gitea registry. ### 1. Build support containers -``` -$ laconic-so --stack build-support build-containers -``` -Note that the scheme/gerbil builder container can take a while to build so if you aren't going to build scheme projects it can be skipped with: + +Note: the scheme/gerbil container is excluded as it isn't currently required for the package registry. + ``` $ laconic-so --stack build-support build-containers --exclude cerc/builder-gerbil ``` @@ -37,6 +36,9 @@ Gitea was configured to use host name: gitea.local, ensure that this resolves to Success, gitea is properly initialized $ ``` + +Note: the above commands can take several minutes depending on the specs of your machine. + ### 3. Configure the hostname gitea.local How to do this is OS-dependent but usually involves editing a `hosts` file. For example on Linux add this line to the file `/etc/hosts` (needs sudo): ``` @@ -56,5 +58,5 @@ Now npm packages can be built: Ensure that `CERC_NPM_AUTH_TOKEN` is set with the token printed above when the package-registry stack was deployed (the actual token value will be different than shown in this example): ``` $ export CERC_NPM_AUTH_TOKEN=84fe66a73698bf11edbdccd0a338236b7d1d5c45 -$ laconic-so build-npms --include laconic-sdk +$ laconic-so build-npms --include laconic-sdk,laconic-registry-cli ```