aboutsummaryrefslogtreecommitdiff
path: root/cluster/staging/app
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-11-29 14:21:12 +0100
committerAlex Auvolat <alex@adnab.me>2022-11-29 14:21:12 +0100
commitc9f9ed4c711b8db80ce03f9aff3f9cc25c568b3a (patch)
tree4bd31889ad7a90d930d6d41ac305457cbabacc25 /cluster/staging/app
parent105c08172827499504816106ffe1b61d76c2d4c8 (diff)
downloadnixcfg-c9f9ed4c711b8db80ce03f9aff3f9cc25c568b3a.tar.gz
nixcfg-c9f9ed4c711b8db80ce03f9aff3f9cc25c568b3a.zip
Deploy garage on staging using nix2 driver
Diffstat (limited to 'cluster/staging/app')
-rw-r--r--cluster/staging/app/garage/deploy/garage-nix2.hcl (renamed from cluster/staging/app/garage/deploy/garage-nix-exec2.hcl)13
1 files changed, 6 insertions, 7 deletions
diff --git a/cluster/staging/app/garage/deploy/garage-nix-exec2.hcl b/cluster/staging/app/garage/deploy/garage-nix2.hcl
index ad36b4e..a60b506 100644
--- a/cluster/staging/app/garage/deploy/garage-nix-exec2.hcl
+++ b/cluster/staging/app/garage/deploy/garage-nix2.hcl
@@ -57,22 +57,21 @@ job "garage-staging" {
# }
task "server" {
- driver = "exec2"
+ driver = "nix2"
config {
- #command = "/usr/bin/env"
- command = "/run/current-system/sw/bin/nix"
- args = [
- "run",
+ packages = [
+ "bash", # so that we can enter a shell inside container
"git+https://git.deuxfleurs.fr/Deuxfleurs/garage.git?ref=nix-remove-system&rev=60c26fbc628d7b450ae39214b578ab6a30583d5c",
- "--",
- "server"
]
+ command = "garage"
+ args = [ "server" ]
bind = {
"/mnt/storage/garage-staging/data" = "/data",
"/mnt/ssd/garage-staging/meta" = "/meta",
}
}
+ user = "root"
template {
data = file("../config/garage.toml")