6
autobuilder/Containerfile
Normal file
6
autobuilder/Containerfile
Normal file
@@ -0,0 +1,6 @@
|
||||
FROM localhost/spark
|
||||
|
||||
RUN pacman -Suy --noconfirm base-devel git
|
||||
|
||||
COPY ./builder.sudoers /etc/sudoers.d/builder
|
||||
COPY ./build /build
|
16
autobuilder/build
Executable file
16
autobuilder/build
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
# The builder user is already created in the rootfs
|
||||
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
|
||||
export LC_ALL=en_US.UTF-8
|
||||
export PKG_URL=$1
|
||||
|
||||
# Upgrade
|
||||
sudo pacman -Suy --noconfirm
|
||||
|
||||
# Workdir
|
||||
cd /buildroot
|
||||
|
||||
# Build the damn thing
|
||||
git clone "$PKG_URL" .
|
||||
makepkg -s --noconfirm -L
|
1
autobuilder/builder.sudoers
Normal file
1
autobuilder/builder.sudoers
Normal file
@@ -0,0 +1 @@
|
||||
builder ALL=(ALL) NOPASSWD: /usr/bin/pacman
|
1
autobuilder/locale.gen
Normal file
1
autobuilder/locale.gen
Normal file
@@ -0,0 +1 @@
|
||||
en_US.UTF-8 UTF-8
|
Reference in New Issue
Block a user