Add DEBUG_SHELL and fix initial pull

This commit is contained in:
Balakrishnan Balasubramanian 2025-02-27 11:51:57 -05:00
parent b2dcfe2b61
commit 552e9dd666
2 changed files with 8 additions and 3 deletions

View File

@ -7,11 +7,12 @@ COPY sudoers /etc/sudoers.d/builder
COPY run.sh /run.sh
# COPY ./yay /usr/bin/yay
# RUN echo "169.254.1.2 archmirror.i.balki.me" >> /etc/hosts
RUN echo "169.254.1.2 archmirror.i.balki.me" >> /etc/hosts
COPY mirrorlist /etc/pacman.d/mirrorlist
RUN pacman -Sy --noconfirm git
COPY mirrorlist /etc/pacman.d/mirrorlist
RUN useradd builder -m

6
run.sh
View File

@ -2,8 +2,8 @@
set -xeuo pipefail
# sudo sed -i '$ a 169.254.1.2 archmirror.i.balki.me' /etc/hosts
sudo sh -c 'echo "169.254.1.2 archmirror.i.balki.me" >> /etc/hosts'
sudo sh -c 'echo "169.254.1.2 gitea.balki.me" >> /etc/hosts'
sudo pacman -Syu
@ -30,6 +30,10 @@ cp -r /w .
cd ./w
if [ "${DEBUG_SHELL-n}" = y ]; then
bash
fi
# bash
# yay_build