From 12ef90ba53ad993fde793f6276cdd6a330ca37e0 Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Sat, 8 Feb 2025 15:34:54 -0500 Subject: [PATCH] initial commit --- Containerfile | 19 +++++++++++++++++++ mirrorlist | 1 + packager.conf | 1 + sudoers | 2 ++ 4 files changed, 23 insertions(+) create mode 100644 Containerfile create mode 100644 mirrorlist create mode 100644 packager.conf create mode 100644 sudoers diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..95e9e3a --- /dev/null +++ b/Containerfile @@ -0,0 +1,19 @@ +FROM docker.io/archlinux:base-devel + +LABEL Description="Container to build archlinux packages" + +COPY packager.conf /etc/makepkg.conf.d/packager.conf +COPY mirrorlist /etc/pacman.d/mirrorlist +COPY sudoers /etc/sudoers.d/builder + +RUN echo "169.254.1.2 archmirror.i.balki.me" >> /etc/hosts + +RUN pacman -S --noconfirm git + +RUN useradd builder -m + +WORKDIR /w + +USER builder + +CMD sudo pacman -Syu && makepkg --printsrcinfo > .SRCINFO && makepkg -s diff --git a/mirrorlist b/mirrorlist new file mode 100644 index 0000000..b7ff017 --- /dev/null +++ b/mirrorlist @@ -0,0 +1 @@ +Server = https://archmirror.i.balki.me/repo/archlinux/$repo/os/$arch diff --git a/packager.conf b/packager.conf new file mode 100644 index 0000000..85a4286 --- /dev/null +++ b/packager.conf @@ -0,0 +1 @@ +PACKAGER="Balakrishnan Balasubramanian " diff --git a/sudoers b/sudoers new file mode 100644 index 0000000..6f6c040 --- /dev/null +++ b/sudoers @@ -0,0 +1,2 @@ + +%builder ALL=(ALL:ALL) NOPASSWD: ALL