blob: fbe28969aeb7bb2be9a657d6d9d81bad3bbbce34 [file] [log] [blame]
Serge Bazanskid0c9c412021-08-30 20:14:58 +00001local mirko = import "../../kube/mirko.libsonnet";
2local kube = import "../../kube/kube.libsonnet";
3
4{
5 cfg:: {
Serge Bazanski0f11b3c2021-09-04 21:32:30 +02006 image: "registry.k0.hswaw.net/q3k/hswaw-site:1630780895-62e50da881f666719aa8b5c632f2a5b33695a058",
Serge Bazanskid0c9c412021-08-30 20:14:58 +00007 webFQDN: error "webFQDN must be set",
8 },
9
10 component(cfg, env):: mirko.Component(env, "site") {
11 local site = self,
12 cfg+: {
13 image: cfg.image,
14 container: site.GoContainer("main", "/hswaw/site/site") {
15 },
16 ports+: {
17 publicHTTP: {
18 web: {
19 port: 8080,
20 dns: cfg.webFQDN,
21 }
22 },
23 },
24 },
25 },
26}