From 6853b65dc06f4d7908f1c2cc3df047daa0d12824 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Sun, 13 Aug 2023 15:31:17 -0400 Subject: [PATCH] services/nomad/build/buildsync-{aarch64,musl}.nomad: use rsyncd instead of a cron job, use rwc to trigger rsync jobs. This should also push to the glibc builder now, instead of the glibc builder pulling from the other builders --- services/nomad/build/buildsync-aarch64.nomad | 30 ++++---------------- services/nomad/build/buildsync-musl.nomad | 30 ++++---------------- services/nomad/build/buildsync-watch | 8 ++++++ services/pkg/rsync/Dockerfile | 2 +- 4 files changed, 19 insertions(+), 51 deletions(-) create mode 100644 services/nomad/build/buildsync-watch diff --git a/services/nomad/build/buildsync-aarch64.nomad b/services/nomad/build/buildsync-aarch64.nomad index d5a3a6f3..f4783057 100644 --- a/services/nomad/build/buildsync-aarch64.nomad +++ b/services/nomad/build/buildsync-aarch64.nomad @@ -13,20 +13,11 @@ job "buildsync-aarch64" { } task "rsync" { - leader = true driver = "docker" - vault { - policies = ["void-secrets-buildsync"] - } - config { - image = "eeacms/rsync" - args = ["client"] - } - - env { - CRON_TASK_1="*/5 * * * * flock -n /run/rsync.lock rsync -vurk -e 'ssh -i /secrets/id_rsa -o UserKnownHostsFile=/local/known_hosts' --exclude '*.sig' --delete-after -f '+ */' -f '+ aarch64*-repodata' -f '+ *.aarch64*.xbps' -f '+ *.noarch*.xbps' -f '+ otime' -f '- *' void-buildsync@b-fsn-de.node.consul:/hostdir/binpkgs/ /pkgs/aarch64" + image = "ghcr.io/void-linux/infra-rsync:202308" # TODO + args = ["/local/buildsync-watch", "aarch64"] } volume_mount { @@ -35,20 +26,9 @@ job "buildsync-aarch64" { } template { - data = <