This is a minimalistic sample on how you can create an application on arbitrary technology. In particular, we're spinning up an image that contains an echo server. You can check Echo Server documentation here.
- Install the latest beta version of the NP CLI:
curl https://cli.nullplatform.com/install.sh | VERSION=beta sh
- Create an api-key with developer, ops, secops and secret-reader roles.
- Export the api-key as
NP_API_KEY
. - Execute the configure script:
The
./configure --nrn="$NRN" --scope=k8s
configure
script will create all nullplatform's entities needed to enable the custom scope (service specification, action specifications, scope type, notification channel). - Run the nullplatfom agent locally with the
start_dev.sh
script. - Create a custom scope from the nullplatform UI. You should receive the notifications in your local agent.
- Change the Dockerfile to run the application / binary that you are building.
- Deploy your application in nullplatform.
- Go to Preferences -> Languages & Frameworks -> Schemas and DTDs -> JSON Schema.
- Create a new schema.
- Select the workflow.schema.json (you can find it in the root of this repository).
- Add file path pattern with value
**/workflows/*.yaml
.
- Copy the workflow.schema.json to the root of your repository (you can find it in the root of this repository).
- Create a
.vscode/settings.json
file with this content:{ "yaml.schemas": { "workflow.schema.json": "**/workflows/*.yaml" } }
- Install the YAML extension by RedHat.