Skip to content
Snippets Groups Projects
Commit 2da411c8 authored by Holger Levsen's avatar Holger Levsen
Browse files

arm64.reproduce.debian.net: configure codethink02 as worker

parent 62837a27
No related branches found
No related tags found
No related merge requests found
#
# Debian trixie
#
deb http://deb.debian.org/debian/ trixie main non-free-firmware contrib non-free
#deb-src http://deb.debian.org/debian/ trixie main non-free-firmware contrib non-free
#
# Debian trixie security
#
deb http://security.debian.org/ trixie-security main non-free-firmware contrib non-free
#deb-src http://security.debian.org/ trixie-security main non-free-firmware contrib non-free
#
# Debian trixie updates
#
deb http://deb.debian.org/debian/ trixie-updates main non-free-firmware contrib non-free
#deb-src http://deb.debian.org/debian/ trixie-updates main non-free-firmware contrib non-free
#
# Debian trixie-backports
#
deb http://deb.debian.org/debian/ trixie-backports main non-free-firmware contrib non-free
#deb-src http://deb.debian.org/debian/ trixie-backports main non-free-firmware contrib non-free
## The rebuilderd to connect to
endpoint = "https://arm64.reproduce.debian.net"
## The server would either allowlist our key or require a signup secret
signup_secret = "INSECURE"
[build]
#timeout = 86400 # 24 hours
## Set a maximum build log limit in bytes (default: none).
## When reaching this limit the log is truncated but the rebuilder backend is *not* terminated.
max_bytes = 20971520 # 20 MiB ## 10 MiB is upstream default
## By default build output is forwarded to stdout/stderr.
## This can be disabled by settings this to true.
#silent = true
[diffoscope]
## Generate and attach diffs with diffoscope when rebuilding
enabled = true
## Pass additional arguments to diffoscope. Use wisely, some options might not work well.
#args = ["--max-container-depth", "2", "--fuzzy-threshold", "0"]
## Set a timeout in seconds after which diffoscope is terminated (default: 3600)
timeout = 600 # 10 minutes
## Set a maximum diffoscope output limit in bytes (default: none).
## When reaching this limit, diffoscope is terminated and the output is truncated.
max_bytes = 10485760 # 10 MiB
[backend."archlinux"]
path = "/usr/libexec/rebuilderd/rebuilder-archlinux.sh"
[backend."debian"]
path = "/opt/usr/libexec/rebuilderd/rebuilder-debian.sh"
[backend."tails"]
path = "/usr/libexec/rebuilderd/rebuilder-tails.sh"
#!/bin/sh
set -xe
cd "$(dirname "$1")"
mkdir -p etc/apt
mkdir -p var/lib/apt/lists/
echo 'deb-src [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://deb.debian.org/debian trixie main' > etc/apt/sources.list
apt-get -o Dir=. update
apt-get -o Dir=. source --download-only "$(basename "$1" | cut -d_ -f1)"
/usr/bin/debrebuild --buildresult="${REBUILDERD_OUTDIR}" --builder=sbuild+unshare --cache=/srv/rebuilderd/cache -- "${1}"
MAILTO=root
42 */3 * * * rebuilderd for arch in amd64 i386 ; do mkdir -p /srv/rebuilderd/$arch/stats/ && /srv/jenkins/bin/rebuilderd_stats.py $arch /srv/rebuilderd/$arch/rebuilderd.db > /srv/rebuilderd/$arch/stats/index.html.tmp && mv /srv/rebuilderd/$arch/stats/index.html.tmp /srv/rebuilderd/$arch/stats/index.html ; done
23 0,6,12,18 * * * rebuilderd for arch in amd64 i386 ; do /srv/jenkins/bin/rebuilderd_graph.sh $arch ; done
42 */3 * * * rebuilderd for arch in amd64 i386 arm64 ; do mkdir -p /srv/rebuilderd/$arch/stats/ && /srv/jenkins/bin/rebuilderd_stats.py $arch /srv/rebuilderd/$arch/rebuilderd.db > /srv/rebuilderd/$arch/stats/index.html.tmp && mv /srv/rebuilderd/$arch/stats/index.html.tmp /srv/rebuilderd/$arch/stats/index.html ; done
23 0,6,12,18 * * * rebuilderd for arch in amd64 i386 arm64 ; do /srv/jenkins/bin/rebuilderd_graph.sh $arch ; done
......@@ -63,7 +63,9 @@
<br/>
<a href="https://i386.reproduce.debian.net/">i386.reproduce.debian.net</a> rebuilds trixie (arch:i386).
<br/>
coming soon: rebuilderd for arm64 and armhf, and also for amd64 unstable and eventually stable.
<a href="https://arm64.reproduce.debian.net/">arm64.reproduce.debian.net</a> rebuilds trixie (arch:arm64).
<br/>
coming soon: trixie/armhf and unstable/arm64, then...
<br/>
<br/>
Do you have hardware?
......
......@@ -139,6 +139,7 @@ cd ; mkdir -p i386 ; cd i386 ; /opt/usr/bin/rebuilderd -c /opt/etc/rebuilderd-i3
while true ; do env REBUILDERD_COOKIE_PATH=~/.local/share/rebuilderd-auth-cookie /opt/usr/bin/rebuildctl -H http://127.0.0.1:8485 pkgs sync-profile --sync-config /opt/etc/rebuilderd-sync-i386.conf debian-main --print-json | jq '.[] | select(.architecture != "all")' | jq -s | env REBUILDERD_COOKIE_PATH=~/.local/share/rebuilderd-auth-cookie /opt/usr/bin/rebuildctl -H http://127.0.0.1:8485 pkgs sync-stdin debian main ; echo sleeping 3h now ; sleep 3h ; done
cd ; mkdir -p arm64 ; cd adm64 ; /opt/usr/bin/rebuilderd -c /opt/etc/rebuilderd-arm64.conf
while true ; do env REBUILDERD_COOKIE_PATH=~/.local/share/rebuilderd-auth-cookie /opt/usr/bin/rebuildctl -H http://127.0.0.1:8486 pkgs sync-profile --sync-config /opt/etc/rebuilderd-sync-arm64.conf debian-main --print-json | jq '.[] | select(.architecture != "all")' | jq -s | env REBUILDERD_COOKIE_PATH=~/.local/share/rebuilderd-auth-cookie /opt/usr/bin/rebuildctl -H http://127.0.0.1:8486 pkgs sync-stdin debian main ; echo sleeping 3h now ; sleep 3h ; done
</body>
</html>
#!/bin/bash
# vim: set noexpandtab:
# Copyright 2012-2024 Holger Levsen <holger@layer-acht.org>
# Copyright 2012-2025 Holger Levsen <holger@layer-acht.org>
# © 2018-2023 Mattia Rizzolo <mattia@debian.org>
# released under the GPLv2
......@@ -383,7 +383,7 @@ if [ -f /etc/debian_version ] ; then
munin-plugins-extra/buster-backports
devscripts/buster-backports
" ;;
osuosl4*|osuosl5*|infom07*|infom08*) # packages to be installed on trixie Debian systems
osuosl4*|osuosl5*|infom07*|infom08*|codethink02*) # packages to be installed on trixie Debian systems
DEBS="$DEBS
btop
debootstrap
......@@ -551,7 +551,7 @@ if [ -f /etc/debian_version ] ; then
esac
# packages needed for rebuilderd-worker for https://reproduce.debian.net
case $HOSTNAME in
infom07*|infom08*) DEBS="$DEBS
infom07*|infom08*|codethink02*) DEBS="$DEBS
diffoscope
python3-rpy2
" ;;
......@@ -736,15 +736,25 @@ if [ "$HOSTNAME" = "jenkins" ] || [ "$HOSTNAME" = "ionos7-amd64" ] || [ "$HOSTNA
fi
# set secret for remote rebuilderd-workers
case $HOSTNAME in
osuosl5*|infom07*|infom08*) SIGNUPSECRET="$(sudo cat /opt/etc/rebuilderd.secret)"
for i in rebuilderd-i386.conf rebuilderd-worker.conf ; do
if [ -f /opt/etc/$i ] ; then
if grep -q '^signup_secret = "INSECURE"' /opt/etc/$i ; then
sudo sed -i "s#^signup_secret = \"INSECURE\"#signup_secret = \"$SIGNUPSECRET\"#g" /opt/etc/$i
osuosl5*) for a in i386 arm64 ; do
SIGNUPSECRET="$(sudo cat /opt/etc/rebuilderd-${a}.secret)"
f=rebuilderd-${a}.conf
if [ -f /opt/etc/$f ] ; then
if grep -q '^signup_secret = "INSECURE"' /opt/etc/$f ; then
sudo sed -i "s#^signup_secret = \"INSECURE\"#signup_secret = \"$SIGNUPSECRET\"#g" /opt/etc/$f
fi
fi
done
;;
;;
infom07*|infom08*|codethink02*)
SIGNUPSECRET="$(sudo cat /opt/etc/rebuilderd.secret)"
f=rebuilderd-worker.conf
if [ -f /opt/etc/$f ] ; then
if grep -q '^signup_secret = "INSECURE"' /opt/etc/$f ; then
sudo sed -i "s#^signup_secret = \"INSECURE\"#signup_secret = \"$SIGNUPSECRET\"#g" /opt/etc/$f
fi
fi
;;
*) ;;
esac
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment