summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <erich.eckner.ext@bestsecret.com>2024-08-07 08:30:20 +0200
committerErich Eckner <erich.eckner.ext@bestsecret.com>2024-08-07 08:30:20 +0200
commitdad0e7c8f407ac9827d79d484144b9200f4b6cb9 (patch)
treefaa14d3107cfbf10bace6e97c0f6eba9f3737128
parente53f0edb5345eec170e88ff4436331a851cd5386 (diff)
downloadarch32-slave-dad0e7c8f407ac9827d79d484144b9200f4b6cb9.tar.xz
bootstrap [releng]
-rwxr-xr-xbootstrap-arch32-trust16
-rw-r--r--pacman-releng.conf2
-rw-r--r--slave.Dockerfile10
3 files changed, 24 insertions, 4 deletions
diff --git a/bootstrap-arch32-trust b/bootstrap-arch32-trust
new file mode 100755
index 0000000..f8f630f
--- /dev/null
+++ b/bootstrap-arch32-trust
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+set -e
+
+keyring=$(
+ curl -Ss 'https://mirror.archlinux32.org/x86_64/releng/' \
+ | tr '"' '\n' \
+ | grep '^archlinux32-keyring-.*-any\.pkg\.tar\.zst$' \
+ | grep -vwF transition \
+ | sort \
+ | tail -n1
+)
+
+curl -o "/${keyring}" "https://mirror.archlinux32.org/x86_64/releng/${keyring}"
+pacman -U --noconfirm "/${keyring}"
+rm "/${keyring}"
diff --git a/pacman-releng.conf b/pacman-releng.conf
new file mode 100644
index 0000000..94e970a
--- /dev/null
+++ b/pacman-releng.conf
@@ -0,0 +1,2 @@
+[releng]
+Include = /etc/pacman.d/mirrorlist
diff --git a/slave.Dockerfile b/slave.Dockerfile
index 2cdb622..e1eba96 100644
--- a/slave.Dockerfile
+++ b/slave.Dockerfile
@@ -3,14 +3,16 @@ FROM archlinux:base-devel
WORKDIR /builder/
RUN pacman-key --init
-RUN curl -Ss https://arch.eckner.net/README | sed 's@^Server = https:.*$@Include = /etc/pacman.d/mirrorlist \\@' | bash
-COPY mirrorlist /etc/pacman.d/
-RUN pacman -Syu --noconfirm git openssh
+RUN sed -i '/# The testing repositories are disabled by default/ i Include = /etc/pacman.d/pacman-releng.conf' /etc/pacman.conf
+COPY pacman-releng.conf mirrorlist /etc/pacman.d/
+COPY bootstrap-arch32-trust /
+RUN /bootstrap-arch32-trust
+RUN rm /bootstrap-arch32-trust
+RUN pacman -Syu --noconfirm git openssh lsof moreutils wget devtools32
RUN sed -i ' \
/PACKAGER/ s/.*/PACKAGER="Erich Eckner <arch at eckner dot net>"/; \
/^OPTIONS/ s/ debug/ !debug/ \
' /etc/makepkg.conf
-
RUN useradd -m builder
RUN git clone https://git.archlinux32.org/builder/ /builder
RUN mkdir /builder/work