No description
Find a file
Pat Dyn c7a7581732 Merge branch 'yaml-ns-refactoring' into 'main'
Remove yaml/load-as-edn multimethod

See merge request domaindrivenarchitecture/c4k-website!1
2022-11-08 13:58:24 +00:00
doc Update tests 2022-10-21 15:36:35 +02:00
infrastructure/c4k-website-build Add functionality for multiple fqdns 2022-09-30 17:54:26 +02:00
public Project skeleton 2022-09-08 15:04:17 +02:00
src Remove yaml/load-as-edn multimethod 2022-11-08 14:50:16 +01:00
.gitignore Project skeleton 2022-09-08 15:04:17 +02:00
.gitlab-ci.yml Project skeleton 2022-09-08 15:04:17 +02:00
copy-and-build-dda-io.sh Fix test 2022-10-21 11:33:25 +02:00
LICENSE Project skeleton 2022-09-08 15:04:17 +02:00
package.json [Skip-CI] Version bump 2022-10-21 12:26:19 +02:00
project.clj Remove yaml/load-as-edn multimethod 2022-11-08 14:50:16 +01:00
README.md [Skip-CI] Update Readme 2022-10-21 16:09:09 +02:00
shadow-cljs.edn Remove yaml/load-as-edn multimethod 2022-11-08 14:50:16 +01:00
valid-auth.edn Simplify spec 2022-10-14 13:41:21 +02:00
valid-config.edn [WIP] Solve ToDos 2022-11-01 12:54:06 +01:00

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 nginx webservers, and a cryogen static site generator 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.

Following the example in valid-config.edn and valid-auth.edn you can add as many websites as you like (provided you have the DNS Routes set up). One set of configmaps, deployment, services etc will be created for each element in the :websites and :auth list.

c4k-website consists of the following parts:

  • unique nginx webserver + service + ingress + certificate
  • unique build container cron job and build secret
  • 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:

  • DNS routes matching the fqdns in the lists
  • 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