diff options
author | Alex Auvolat <alex@adnab.me> | 2022-12-01 23:30:12 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-12-01 23:30:12 +0100 |
commit | db8638223f632a07cdd5c95e55f4e077f58959d3 (patch) | |
tree | dce50d80ec7ae41f418830e0ef58d0b1af5de4ee /cluster/staging | |
parent | e67b460ae20d7e026dd14d690d3bacd33639bc7b (diff) | |
download | nixcfg-db8638223f632a07cdd5c95e55f4e077f58959d3.tar.gz nixcfg-db8638223f632a07cdd5c95e55f4e077f58959d3.zip |
staging: also run Guichet from nix
Diffstat (limited to 'cluster/staging')
-rw-r--r-- | cluster/staging/app/directory/deploy/directory.hcl | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/cluster/staging/app/directory/deploy/directory.hcl b/cluster/staging/app/directory/deploy/directory.hcl index 68e00d6..7c597fa 100644 --- a/cluster/staging/app/directory/deploy/directory.hcl +++ b/cluster/staging/app/directory/deploy/directory.hcl @@ -86,23 +86,21 @@ EOH count = 1 network { - port "web_port" { to = 9991 } + port "web_port" { static = 9991 } } task "guichet" { - driver = "docker" + driver = "nix2" config { - image = "superboum/guichet_amd64:15" - readonly_rootfs = true - ports = [ "web_port" ] - volumes = [ - "secrets/config.json:/config.json" + packages = [ + "git+https://git.deuxfleurs.fr/Deuxfleurs/guichet.git?ref=main&rev=085a7cfd26c553adfc3ca9d9dd3e043753b0d3ea" ] + command = "guichet" } template { data = file("../config/guichet/config.json.tpl") - destination = "secrets/config.json" + destination = "config.json" } resources { @@ -117,7 +115,6 @@ EOH "tricot guichet.staging.deuxfleurs.org", ] port = "web_port" - address_mode = "host" check { type = "tcp" port = "web_port" |