Skip to content

Netcracker/qubership-apihub-build-task-consumer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

265 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

qubership-apihub-build-task-consumer

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.

Installation

npm install

Building the app locally

Modify .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 .

Production Docker image (locally)

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.

Running the app

# development
$ npm start

# watch mode
$ npm start:dev

# production mode
$ npm start:prod

About

No description or website provided.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors