This commit is contained in:
Medzik 2022-02-16 14:44:05 +01:00
parent 3b88c0616c
commit 8a6febf82b
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB
4 changed files with 29 additions and 16 deletions

View File

@ -1,22 +1,13 @@
FROM archlinux AS bootstrap
COPY setup.sh /tmp/setup.sh
COPY resolv.conf /etc/resolv.conf
RUN pacman -Sy --noconfirm wget \
&& pacman-key --init \
&& pacman-key --recv-key 7A6646A6C14690C0 \
&& pacman-key --lsign-key 7A6646A6C14690C0 \
&& pacman -U --noconfirm 'https://arch-repo.magicuser.cf/medzikuser-mirrorlist.pkg.tar.xz' \
&& yes | pacman -Scc
COPY pacman.conf /etc/pacman.conf
COPY mirrorlist /etc/pacman.d/mirrorlist
RUN pacman -Syu --noconfirm \
&& yes | pacman -Scc
RUN useradd --create-home build
RUN bash /tmp/setup.sh && \
rm -rf /tmp/*
COPY pacman.conf /etc/pacman.conf
COPY sudoers /etc/sudoers
# Create final image
@ -27,4 +18,5 @@ COPY --from=bootstrap / /
RUN ldconfig
ENV LANG=en_US.UTF-8
CMD ["/usr/bin/bash"]

View File

@ -147,7 +147,7 @@ COMPRESSLZ=(lzip -c -f)
# EXTENSION DEFAULTS
#########################################################################
#
PKGEXT='.pkg.tar.xz'
PKGEXT='.pkg.tar.zst'
SRCEXT='.src.tar.gz'
#########################################################################

View File

@ -30,10 +30,10 @@ Architecture = auto
# Misc options
#UseSyslog
#Color
Color
#NoProgressBar
#CheckSpace
#VerbosePkgLists
VerbosePkgLists
ParallelDownloads = 5
# By default, pacman accepts packages signed by keys that its local keyring

21
base/setup.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
set -e -u
# Add Medzik AUR repo
pacman-key --init
pacman-key --recv-key 7A6646A6C14690C0
pacman-key --lsign-key 7A6646A6C14690C0
pacman -U --noconfirm 'https://arch-repo.magicuser.cf/medzikuser-mirrorlist.pkg.tar.xz'
# Install packages
PACKAGES=('base')
PACKAGES+=('wget')
PACKAGES+=('curl')
pacman -Syu --noconfirm ${PACKAGES}
# Clean pacman cache
yes | pacman -Scc
# Create `build` user
useradd --create-home build