Skip to content

sonyafenge/croc-hunter-jenkinsx-serverless

Repository files navigation

Croc Hunter - The game!

For those that have dreamt to hunt crocs

Usage

Basic go webserver to demonstrate example CI/CD pipeline using Kubernetes

Injecting Delays and Errors

Making requests to these urls will cause the app to delay the response or to respond with an error, and can be useful to simulate real life errors.

/delay?wait=5
/status?code=500

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

Just follow the JenkinsX installation with --prow=true

For example, if using GKE with cert-manager preinstalled for https certificates

jx install --provider=gke --domain=example.com --http=false --tls-acme=true

Then fork this repo and import it

jx import --url https://github.com/GITHUB_USER/croc-hunter-jenkinsx-serverless --no-draft --pack=go

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 promote from staging to production just run

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

Then delete the PR environments

jx delete env

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 78.7%
  • Smarty 11.6%
  • Dockerfile 4.9%
  • Shell 4.8%