Serge Bazanski | d0c9c41 | 2021-08-30 20:14:58 +0000 | [diff] [blame] | 1 | local mirko = import "../../kube/mirko.libsonnet"; |
| 2 | local kube = import "../../kube/kube.libsonnet"; |
| 3 | |
| 4 | { |
| 5 | cfg:: { |
Serge Bazanski | 0f11b3c | 2021-09-04 21:32:30 +0200 | [diff] [blame] | 6 | image: "registry.k0.hswaw.net/q3k/hswaw-site:1630780895-62e50da881f666719aa8b5c632f2a5b33695a058", |
Serge Bazanski | d0c9c41 | 2021-08-30 20:14:58 +0000 | [diff] [blame] | 7 | 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 | } |