Skip to content

Packet Delivery Portal application for i4Trust experimentation framework

License

Notifications You must be signed in to change notification settings

i4Trust/pdc-portal

Repository files navigation

pdc-portal

Packet Delivery Portal application for i4Trust experimentation framework

Configuration

Configuration is done in the file config/pdc-portal.yml. You need to modify the values according to your environment and add your private key and certificate chain.

Private key and certificate chain can be also provided as ENVs as given below. In this case, the values from config/pdc-portal.yml would be overwritten.

  • Private key: PORTAL_CLIENT_KEY
  • Certificate chain: PORTAL_CLIENT_CRT

Usage

Local

Run locally using node.js:

npm install
npm start

Docker

A Dockerfile is provided for building the image:

docker build -t pdc-portal:my-tag .

Make a copy of the configuration file config/pdc-portal.yml and modify according to your environment. Then run the image:

docker run --rm -it -p 7000:7000 -v <PATH_TO_FILE>/pdc-portal.yml:/home/portal/config/pdc-portal.yml pdc-portal:my-tag

Kubernetes

A Helm chart is provided on GitHub and Artifacthub.

Debug

Enable debugging by setting the environment variable:

DEBUG="portal:*"