From 8e9b0d5daa465f5df5a83bb95117cb23668060f7 Mon Sep 17 00:00:00 2001 From: Tomislav Ivanov <78173711+TIVMOF@users.noreply.github.com> Date: Wed, 15 Apr 2026 17:02:46 +0300 Subject: [PATCH 1/2] Update .npmrc --- codbex-uoms-data/.npmrc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/codbex-uoms-data/.npmrc b/codbex-uoms-data/.npmrc index a822756..3bdca56 100644 --- a/codbex-uoms-data/.npmrc +++ b/codbex-uoms-data/.npmrc @@ -1,3 +1,2 @@ -registry=https://registry.npmjs.org/ - @codbex:registry=https://npm.pkg.github.com +//npm.pkg.github.com/:_authToken=${NPM_TOKEN} From 7ef09a75183a9c7277f4a0269b9f096b5f4b814c Mon Sep 17 00:00:00 2001 From: Tomislav Ivanov <78173711+TIVMOF@users.noreply.github.com> Date: Wed, 15 Apr 2026 17:23:45 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 498c1a3..faffa70 100644 --- a/README.md +++ b/README.md @@ -10,3 +10,21 @@ UoMs Management Data * [Guide for the Use of the International System of Units (SI)](https://physics.nist.gov/cuu/pdf/sp811.pdf) * [Master List of Unit of Measures](https://help.sap.com/docs/SAP_Predictive_Maintenance_and_Service/a6d34dd348294e6daa2b3a5b601a4838/3471d66aa8c3417ea10b8deea2178f43.html) + +## Local Development with Docker + +When running this project inside the codbex Atlas Docker image, you must provide authentication for installing dependencies from GitHub Packages. +1. Create a GitHub Personal Access Token (PAT) with `read:packages` scope. +2. Pass `NPM_TOKEN` to the Docker container: + + ``` + docker run \ + -e NPM_TOKEN= \ + --rm -p 80:80 \ + ghcr.io/codbex/codbex-atlas:latest + ``` + +⚠️ **Notes** +- The `NPM_TOKEN` must be available at container runtime. +- This is required even for public packages hosted on GitHub Packages. +- Never bake the token into the Docker image or commit it to source control.