Serge Bazanski | 95ba05d | 2021-05-12 21:28:10 +0000 | [diff] [blame] | 1 | local mirko = import "../../kube/mirko.libsonnet"; |
| 2 | local kube = import "../../kube/kube.libsonnet"; |
| 3 | |
| 4 | { |
| 5 | cfg:: { |
Serge Bazanski | ec22027 | 2021-08-14 16:04:57 +0000 | [diff] [blame] | 6 | image: "registry.k0.hswaw.net/q3k/cebulacamp-landing:315532800-bbf56cf7e14df954dcddedfe44c967246f11b72c", |
Serge Bazanski | 95ba05d | 2021-05-12 21:28:10 +0000 | [diff] [blame] | 7 | webFQDN: error "webhookFQDN must be set", |
| 8 | }, |
| 9 | |
| 10 | component(cfg, env):: mirko.Component(env, "cebulacamp") { |
| 11 | local cebulacamp = self, |
| 12 | cfg+: { |
| 13 | image: cfg.image, |
| 14 | container: cebulacamp.Container("main") { |
| 15 | command: [ |
| 16 | "/hscloud/hswaw/cebulacamp/landing/backend", |
| 17 | ], |
| 18 | }, |
| 19 | ports+: { |
| 20 | publicHTTP: { |
| 21 | web: { |
| 22 | port: 8080, |
| 23 | dns: cfg.webFQDN, |
| 24 | } |
| 25 | }, |
| 26 | }, |
| 27 | }, |
| 28 | }, |
| 29 | } |