You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to file
erik 49dd95f78e WIP Refactoring ingress
Move Cert generation to ingress as well.
Need to specify name for each http, https, cert resource.
Update tests and ingress definitions.
2 years ago
doc Adjusted Tests 2 years ago
infrastructure/c4k-website-build Add functionality for multiple fqdns 2 years ago
public Project skeleton 2 years ago
src WIP Refactoring ingress 2 years ago
.gitignore Project skeleton 2 years ago
.gitlab-ci.yml Project skeleton 2 years ago
LICENSE Project skeleton 2 years ago
README.md Cleanup 2 years ago
package.json [Skip-CI] Version Bump 2 years ago
project.clj [Skip-CI] Version Bump 2 years ago
shadow-cljs.edn Cleanup 2 years ago
valid-auth.edn Simplify spec 2 years ago
valid-config.edn Simplify spec 2 years ago

README.md

convention 4 kubernetes: c4k-website

Clojars Project pipeline status

DeltaChat chat over e-mail | team@social.meissa-gmbh.de team@social.meissa-gmbh.de | Website & Blog

Purpose

Delivering cryogen generated static sites with the push of a few buttons.

c4k-website generates configuration files for an nginx webserver, and a cryogen static site build container. It automatically downloads a branch.zip from a specified gitea API url. You need an authorization token to access the specified gitea user account. The build container is based on clojure:lein. Webserver and build pods are uniquely named by fqdn, so adding multiple websites shouldn't be a problem.

c4k-website has the following modules:

  • unique nginx webserver + service + ingress + certificate
  • unique build container cron job
  • unique volume claim for both

Try out

Click on the image to try out live in your browser:

Try it out

Your input will stay in your browser. No server interaction is required.

Setup

You need:

  • cryogen as a static site generator
  • a cryogen project ready to build
  • and a gitea account which holds the buildable project

Before deploying, you need an authorization token, that can be generated in your gitea account. Then you need a URL that points to: https://your.gitea.host/api/v1/repos/<owner>/<repo>/archive/main.zip. Add this to your auth.edn config file and you should be ready to go.

Let c4k-website generate your .yaml file and kubectl apply yourApp.yaml. Done.

License

Copyright © 2022 meissa GmbH Licensed under the Apache License, Version 2.0 (the "License") Pls. find licenses of our subcomponents here