You can run H2 and Kafka prior to running the app via docker-compose up
command. Afterwards you can run the app.
When the bootstrap is complete, you can submit a new job via following command
curl -X POST -H 'Content-Type: application/json' -d '{"start":1,"end":999}' http://localhost:8080/scheduler/jobs
The job will be run by the quartz within the next second only once, and you should be able to see create Foo records
in the H2 database by accessing browser console http://localhost:8082 and connecting to the DB with URL
jdbc:h2:tcp://localhost/h2-data/test
. The Kafka messages can be examined via http://localhost:9000.