| /bin/sh |
| ARG TARGETARCH=amd64 |
| COPY dir:e25649adfb87a79e088df4615430026691038e9df65540ca817a99aab4745275 in /keys |
| |1 TARGETARCH=amd64 /bin/sh -c pacman-key --init && pacman-key --add /keys/*.asc && if [ "$TARGETARCH" = "amd64" ]; then echo "Server = https://mirror.init7.net/archlinux/\$repo/os/\$arch" > /etc/pacman.d/mirrorlist && echo "Server = https://mirror.metanet.ch/archlinux/\$repo/os/\$arch" >> /etc/pacman.d/mirrorlist && echo "Server = https://mirror.puzzle.ch/archlinux/\$repo/os/\$arch" >> /etc/pacman.d/mirrorlist && echo "Server = https://mirror.ungleich.ch/mirror/packages/archlinux/\$repo/os/\$arch" >> /etc/pacman.d/mirrorlist && echo "Server = https://pkg.adfinis.com/archlinux/\$repo/os/\$arch" >> /etc/pacman.d/mirrorlist && rm -rf /var/lib/pacman/sync/* && pacman -Sy --noconfirm archlinux-keyring && pacman-key --populate archlinux && pacman -S --noconfirm pacman && rm -rf /var/lib/pacman/sync/* && sed -i '/^\[options\]/a SigLevel = Required DatabaseOptional' /etc/pacman.conf && pacman -Syu --noconfirm && pacman-key --lsign-key 159B530F61813FB067DCFEB45B5525DF8EB9A8E1 && pacman-key --lsign-key 3038C77840D186ACAB972D50B4D82AFC37757617 && gpg --import /keys/159B530F61813FB067DCFEB45B5525DF8EB9A8E1.asc && echo -e "5\ny\n" | gpg --batch --command-fd=0 --edit-key 159B530F61813FB067DCFEB45B5525DF8EB9A8E1 trust && pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com && pacman-key --lsign-key 3056513887B78AEB && pacman -U --noconfirm 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst' && pacman-key --recv-key 882DCFE48E2051D48E2562ABF3B607488DB35A47 --keyserver keyserver.ubuntu.com && pacman-key --lsign-key 882DCFE48E2051D48E2562ABF3B607488DB35A47 && pacman -U --noconfirm 'https://mirror.cachyos.org/repo/x86_64/cachyos/cachyos-keyring-20240331-1-any.pkg.tar.zst' 'https://mirror.cachyos.org/repo/x86_64/cachyos/cachyos-mirrorlist-22-1-any.pkg.tar.zst' 'https://mirror.cachyos.org/repo/x86_64/cachyos/cachyos-v3-mirrorlist-22-1-any.pkg.tar.zst' && sed -i 's|^Server = https://cdn77.cachyos.org|#Server = https://cdn77.cachyos.org|g' /etc/pacman.d/cachyos-*-mirrorlist; elif [ "$TARGETARCH" = "arm64" ]; then echo "Server = https://eu.mirror.archlinuxarm.org/\$arch/\$repo/" > /etc/pacman.d/mirrorlist && pacman-key --populate archlinuxarm; fi |
| |1 TARGETARCH=amd64 /bin/sh -c pacman -Sy --noconfirm --needed base-devel arch-install-scripts git dosfstools mtools libisoburn erofs-utils sbsigntools fuse-overlayfs buildah curl jq && sed -i -e 's|^#mount_program|mount_program|g' /etc/containers/storage.conf && useradd -m builder && echo 'builder ALL=(ALL:ALL) NOPASSWD:ALL' > /etc/sudoers.d/builder && NYDUS_VERSION=$(curl -sL https://api.github.com/repos/dragonflyoss/nydus/releases/latest | jq -r '.tag_name' | sed 's/^v//') && curl -L "https://github.com/dragonflyoss/nydus/releases/download/v${NYDUS_VERSION}/nydus-static-v${NYDUS_VERSION}-linux-${TARGETARCH}.tgz" -o /tmp/nydus.tgz && tar -xzf /tmp/nydus.tgz -C /tmp && mv /tmp/nydus-static/* /usr/local/bin/ && chmod +x /usr/local/bin/nydus* /usr/local/bin/nydusd /usr/local/bin/nydusctl /usr/local/bin/nydus-image && rm -rf /tmp/nydus.tgz /tmp/nydus-static |
| USER builder |
| |1 TARGETARCH=amd64 /bin/sh -c cd /tmp/ && git clone https://aur.archlinux.org/aurutils.git && cd aurutils && makepkg --syncdeps --noconfirm |
| USER root |
| COPY file:e3906a1503b2fe05131b37bf44e8115a1f5b9122d9935555385a760739163f42 in /etc |
| |1 TARGETARCH=amd64 /bin/sh -c if [ "$TARGETARCH" = "amd64" ]; then cp /etc/pacman.conf.x86_64_v3 /etc/pacman.conf; fi && chmod 644 /etc/pacman.conf && mkdir -p /aur && mv /tmp/aurutils/aurutils-*.pkg.* /aur/ && repo-add /aur/aur.db.tar.gz /aur/aurutils-*.pkg.* && echo "[aur]" >> /etc/pacman.conf && echo "SigLevel = Optional TrustAll" >> /etc/pacman.conf && echo "Server = file:///aur" >> /etc/pacman.conf && if [ "$TARGETARCH" = "amd64" ]; then echo "[chaotic-aur]" >> /etc/pacman.conf && echo "Include = /etc/pacman.d/chaotic-mirrorlist" >> /etc/pacman.conf; fi && pacman -Sy --noconfirm && pacman -S --noconfirm aurutils && rm -rf /var/lib/pacman/sync/* && find /var/cache/pacman/ -type f -delete && rm /etc/pacman.d/gnupg/openpgp-revocs.d/* /etc/pacman.d/gnupg/private-keys-v1.d/* && find /var/lib/pacman/local/ -type f -name "desc" -exec sed -i '/^%INSTALLED_DB%$/,+2d' {} \; |
| ENV _BUILDAH_STARTED_IN_USERNS= BUILDAH_ISOLATION=chroot |
| COPY file:6972a3a27379914137cf18ed68ebc5e71fcca16f5a7627e47c145d52ddc5054a in /usr/bin |
| ENTRYPOINT ["idkyet-builder"] |