2021-08-30 20:14:58 +00:00
|
|
|
local mirko = import "../../kube/mirko.libsonnet";
|
|
|
|
local kube = import "../../kube/kube.libsonnet";
|
|
|
|
|
|
|
|
{
|
|
|
|
cfg:: {
|
2022-02-01 09:46:02 +00:00
|
|
|
image: "registry.k0.hswaw.net/q3k/hswaw-site:1643708475-9c680f637a009d9902031d4b1e15c9f8d9f9f1df",
|
2021-08-30 20:14:58 +00:00
|
|
|
webFQDN: error "webFQDN must be set",
|
|
|
|
},
|
|
|
|
|
|
|
|
component(cfg, env):: mirko.Component(env, "site") {
|
|
|
|
local site = self,
|
|
|
|
cfg+: {
|
|
|
|
image: cfg.image,
|
|
|
|
container: site.GoContainer("main", "/hswaw/site/site") {
|
|
|
|
},
|
|
|
|
ports+: {
|
|
|
|
publicHTTP: {
|
|
|
|
web: {
|
|
|
|
port: 8080,
|
|
|
|
dns: cfg.webFQDN,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|