c4k-website/doc/data-flow.md

40 lines
1.3 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 12:54:06 +00:00
subgraph dockerImage
2023-10-05 13:07:30 +00:00
build((build website))
pull((pull website repo))
2023-10-05 12:54:06 +00:00
unpack((unpack website data))
exec((execute scripts))
if0{scripts exist}
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:07:30 +00:00
conf -- configuration data --> c4k
auth -- authorization data --> c4k
c4k -- container specific config &\n build specific env vars--> depl & cron
2023-10-05 12:54:06 +00:00
c4k -- build specific secret env vars --> sec
2023-10-05 13:07:30 +00:00
sec -- secret env vars --> depl & cron
depl & cron -- environment vars\n from secret and c4k-website --> dockerImage
repo -- build repo --> dockerImage
dockerImage -- website files --> vol
vol -- website files --> nginx
nginx -- website files --> serve
serve -- rendered page --> user
2023-10-05 12:54:06 +00:00
```