Add DEBUG_SHELL and fix initial pull
This commit is contained in:
parent
b2dcfe2b61
commit
552e9dd666
@ -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
6
run.sh
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user