Retrieve CAP (Common Alerting Protocal) messages from an RSS feed and publish them to Kafka.
The project assumes that the STRATEGY-EU/DRIVER+ Apache Kafka-based test-bed is running. If not, see the test-bed installation instructions for installing a local version of the testbed.
In addition, it assumes that a CAP AVRO schema has been registered in the testbed too.
npm add -g pnpm
pnpm i
npm run buildnpm run docker:buildThis will create a docker local image with the name 'cap-to-kafka'. See the docker-compose.yml for an example service configuration to add in your testbed composition.
To publish the local docker image to strategy-eu docker hub:
docker login --username=<<GIT USERNAME e.g. erik.vullings>>
npm run docker:build
npm run docker:tag
npm run docker:publishYou can start them in two terminals, or one after the other.
npm run cap-to-kafkanpm start