c4k-website/doc/data-flow.md

50 lines
1.4 KiB
Markdown
Raw Normal View History

2023-10-05 12:54:32 +00:00
# Data Flow from config & auth to final website
2023-10-05 12:54:06 +00:00
```mermaid
flowchart TB
2023-10-05 13:07:30 +00:00
conf(config)
auth(auth)
2023-10-05 12:54:06 +00:00
c4k(c4k-website)
sec(website-build-secret)
2023-10-05 13:07:30 +00:00
depl(nginx-deployment\ninitContainer)
cron(website-build-cron)
repo(repo.prod.meissa.de)
vol[(content-volume)]
nginx(nginx)
serve((serve website))
user(website-user)
2023-10-05 13:09:18 +00:00
generate((Generation))
app(application.yaml)
build((build website))
pull((pull website repo))
unpack((unpack website data))
exec((execute scripts))
if0{scripts exist}
2023-10-05 12:54:06 +00:00
subgraph dockerImage
2023-10-05 13:07:30 +00:00
pull -- zip file --> unpack
2023-10-05 12:54:06 +00:00
unpack -- website data --> if0
if0 -- yes --> exec
2023-10-05 13:07:30 +00:00
exec -- modified\n website data--> build
if0 -- no\n unmodified website data --> build
2023-10-05 12:54:06 +00:00
end
2023-10-05 13:09:18 +00:00
2023-10-05 13:07:30 +00:00
conf -- configuration data --> c4k
auth -- authorization data --> c4k
2023-10-05 13:09:18 +00:00
c4k -- auth & conf data --> generate
generate -- correctly placed auth & conf data --> app
subgraph cluster
app -- container specific config &\n build specific env vars--> depl & cron
app -- build specific secret env vars --> sec
sec -- secret env vars --> depl & cron
depl & cron -- environment vars\n from secret and c4k-website --> dockerImage
dockerImage -- website files --> vol
vol -- website files --> nginx
nginx -- website files --> serve
end
2023-10-05 13:07:30 +00:00
repo -- build repo --> dockerImage
serve -- rendered page --> user
2023-10-05 12:54:06 +00:00
```