diff --git a/Containerfile b/Containerfile index b0ed2be..1e8fd90 100644 --- a/Containerfile +++ b/Containerfile @@ -7,7 +7,7 @@ COPY makepkg.conf /etc/makepkg.conf.d/custom.conf COPY sudoers /etc/sudoers.d/builder COPY run.sh /run.sh -RUN echo "100.64.0.2 archmirror.i.balki.me" >> /etc/hosts +# RUN echo "100.64.0.2 archmirror.i.balki.me" >> /etc/hosts COPY mirrorlist /etc/pacman.d/mirrorlist diff --git a/Makefile b/Makefile index 464eef1..13e7f60 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ build: - podman build -t aur_builder:latest -t aur_builder:`date -I` . + podman build --add-host archmirror.i.balki.me:100.64.0.2 -t aur_builder:latest -t aur_builder:`date -I` . pull: # podman pull docker.io/archlinux:base-devel diff --git a/systemd/aur_builder_image_gen.service b/systemd/aur_builder_image_gen.service index fbd2864..ae0429b 100644 --- a/systemd/aur_builder_image_gen.service +++ b/systemd/aur_builder_image_gen.service @@ -6,5 +6,5 @@ Type=oneshot WorkingDirectory=/home/balki/projects/mine/aur_builder ExecStart=podman pull quay.io/archlinux/archlinux:base-devel -ExecStart=podman build -t gitea.balki.me/balki/aur_builder:latest . +ExecStart=podman build --add-host archmirror.i.balki.me:100.64.0.2 -t gitea.balki.me/balki/aur_builder:latest . ExecStart=podman push gitea.balki.me/balki/aur_builder:latest