simple scala http4s app deployed to GCP k8 using GCP cloudbuild
Logs guess books entries
The following are required
To install, test and run first clone the repo, next:
sbt test run
sbt run
From project root folder:
docker build -t kayvank/guest-book:v1.00123 .
docker run -p9000:9000 kayvank/guest-book:v1.00123
From a separate terminal:
./integration-test.sh
Note this is a very simple integration test.
This application is deployed to k8 cluster using cloud-build
curl -v -k -i \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST -d \
'{"name": "John Doe", "message": "Hello from John Doe!"}' \
https://guest-book.tk/v1/log
curl -v -k https://www.guest-book.tk/v1/log
the project is build inside a docker container. This will allow us to simplify CI and take advantage of