docker build --platform=linux/amd64 -t quay.io/jpetnik/node-red-app-ic .
docker push quay.io/jpetnik/node-red-app-ic:latest
export CLOUDANT_URL="https://hostname"
export CLOUDANT_APIKEY="apikeyvalue"
npm i
npm start
export CLOUDANT_URL="https://hostname"
export CLOUDANT_APIKEY="apikeyvalue"
docker run -it --rm -p 3000:3000 -e CLOUDANT_URL=$CLOUDANT_URL -e CLOUDANT_APIKEY=$CLOUDANT_APIKEY quay.io/jpetnik/node-red-app-ic:latest
Steps:
- Copy
k8s/cloudant.Secret.yaml.template
intok8s/cloudant.Secret.yaml
. - In the
k8s/cloudant.Secret.yaml
file, fill in your cloudant service credentials (CLOUDANT_URL
only, or includingCLOUDANT_APIKEY
). - Log into the K8s/OCP cluster.
- Apply yamls by:
kubectl apply -f k8s/
Disclaimer: Since this repository mainly targets a deployment to the free Kubernetes service in IBM cloud, the service is of the NodePort
type.
Among other defaults (node-red specific variables), this repository adds the following envs:
Name | Description |
---|---|
CLOUDANT_URL |
Cloudant url. Set "https://hostname" for IAM authentication or "https://username:password@hostname" for basic authentication. |
CLOUDANT_APIKEY |
IAM apiKey. Set "apikey value" for IAM authentication. Or use "" or do not set this variable at all for basic authentication. |