-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into build-system-updates
- Loading branch information
Showing
31 changed files
with
255 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
FROM archlinux:base-devel | ||
LABEL contributor="[email protected]" | ||
COPY rootfs/etc/pacman.conf /etc/pacman.conf | ||
RUN echo -e "keyserver-options auto-key-retrieve" >> /etc/pacman.d/gnupg/gpg.conf && \ | ||
# Cannot check space in chroot | ||
sed -i '/CheckSpace/s/^/#/g' /etc/pacman.conf && \ | ||
pacman-key --init && \ | ||
COPY rootfs/etc/resolv.conf /etc/resolv.conf | ||
RUN echo -e "keyserver-options auto-key-retrieve" >> /etc/pacman.d/gnupg/gpg.conf | ||
|
||
# Cannot check space in chroot | ||
RUN sed -i '/CheckSpace/s/^/#/g' /etc/pacman.conf | ||
|
||
RUN pacman-key --init && \ | ||
pacman --noconfirm -Syyuu && \ | ||
pacman --noconfirm -S \ | ||
arch-install-scripts \ | ||
|
@@ -20,12 +23,20 @@ RUN echo -e "keyserver-options auto-key-retrieve" >> /etc/pacman.d/gnupg/gpg.con | |
python-markdown-it-py \ | ||
python-setuptools \ | ||
python-wheel \ | ||
sudo \ | ||
&& \ | ||
pacman --noconfirm -S --needed git && \ | ||
echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \ | ||
useradd build -G wheel -m && \ | ||
su - build -c "git clone https://aur.archlinux.org/pikaur.git /tmp/pikaur" && \ | ||
sudo | ||
|
||
RUN pacman --noconfirm -S --needed git | ||
|
||
# No password asked for wheel group | ||
RUN echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers | ||
|
||
# The makepkg tool cannot use root: add a temp user to build packages | ||
# and add that user to wheel group so that it can install packages | ||
# without being asked for a password | ||
RUN useradd build -G wheel -m | ||
|
||
# Build and install pikaur | ||
RUN su - build -c "git clone https://aur.archlinux.org/pikaur.git /tmp/pikaur" && \ | ||
su - build -c "cd /tmp/pikaur && makepkg -f" && \ | ||
pacman --noconfirm -U /tmp/pikaur/pikaur-*.pkg.tar.zst | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.