Getting Started
This page describes how to configure applications so they are recognized and correctly connected to ICC.
Prerequisites
Section titled “Prerequisites”- ICC installed correctly and running
- A
npm
user authorized by Platformatic and a validauthToken
for it.
ICC - Initial State
Section titled “ICC - Initial State”When ICC is deployed and started the first time, no applications are shown
Application setup
Section titled “Application setup”To have an application to show up in ICC, the application must include among its dependencies @platformatic/wattpro
and the app environment must include the PLT_ICC_URL
variable specifying the ICC URL
An example of Dockerfile
is:
FROM node:22-alpine
ENV APP_HOME=/home/app/node/
RUN mkdir -p $APP_HOME/node_modules && chown -R node:node $APP_HOME
## This is necessary to access private `npm` repositoriesRUN --mount=type=secret,id=npmrc cp /run/secrets/npmrc /root/.npmrc
## This is the actual platformatic runtime that executes your node appRUN npm install -g "@platformatic/wattpro@latest"
WORKDIR $APP_HOME
COPY ./ ./
USER node
EXPOSE 3042EXPOSE 7777
CMD [ "wattpro", "start" ]
Note that this Dockerfile assumes that a secret
named npmrc
is passed. Check the Docker configuration about it, but one way is with --secret=id=npmrc,src=~/.npmrc
.
The .npmrc must contain the npm authToken authorized to access the @platformatic/wattpro
npm package and provided by Platformatic.
Once the application is deployed and started on K8s, it will appear on ICC:
Open the application detail to see the application and K8s metrics: