Node.js microservice for APIHUB Package versions builds.
This microservice is REST API and task management wrapper for qubership-apihub-api-processor library.
Delievered as a Docker image and included into Qubership-APIHUB delivery as a mandatory part.
So please refer to qubership-apihub application repository for end-to-end installation details.
npm installModify .npmrc file by adding GitHub PAT (personal access token) with access to read packages.
The file content sample:
@netcracker:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=ghp_XYZ
always-auth=true
npm install
npm run build
podman build -f Dockerfile.local .Uses the same .npmrc as above. The production Dockerfile does not copy it into the image; pass it as a build secret:
podman build --secret id=npmrc,src=.npmrc .Optional: --build-arg TAG=<version> (default is dev) to select the published package version from GitHub Packages.
# development
$ npm start
# watch mode
$ npm start:dev
# production mode
$ npm start:prod