/croc-hunter-java

Croc Hunter demo using Quarkus and GraalVM, deployed with Jenkins X

Primary LanguageJava

Croc Hunter - The game!

For those that have dreamt to hunt crocs

Usage

Basic Quarkus app to demonstrate example CI/CD pipeline using Kubernetes

Local Development

Quarkus comes with a built-in development mode. Run your application with:

mvn compile quarkus:dev

mvn package will build a native image.

Deploy using JenkinsX (Kubernetes, Helm, Monocular, ChartMuseum)

Just follow the JenkinsX installation with Tekton

For example, if using GKE

jx install \
    --provider=gke \
    --tekton
jx upgrade ingress

Then fork this repo and import it

jx import \
    --url https://github.com/GITHUB_USER/croc-hunter-java \
    --no-draft \
    --pack=maven

Then, any PRs against this repo will be automatically deployed to preview environments. When they are merged they will be deployed to the staging environment.

To tail all the build logs

kail -l tekton.dev/pipeline --since=5m

Or in GKE StackDriver logs

resource.labels.cluster_name="mycluster"
resource.type="container"
labels."container.googleapis.com/namespace_name"="jx"
resource.labels.container_name:build-step-

To promote from staging to production just run

jx promote croc-hunter-java --version 0.0.1 --env production

Acknowledgements

Original work by Lachlan Evenson Continuation of the awesome work by everett-toews.

Watch Their Demo

https://www.youtube.com/watch?v=eMOzF_xAm7w