Skip to content

Commit

Permalink
Switch to root for building
Browse files Browse the repository at this point in the history
  • Loading branch information
rahilarious committed Jun 20, 2023
1 parent 571e4c5 commit 9b40aab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gentoo-base/create_gentoo_containers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

time { cd ${HOME}/containers/gentoo/gentoo-base && \
wget -c https://bouncer.gentoo.org/fetch/root/all/releases/amd64/autobuilds/$(curl -sL https://bouncer.gentoo.org/fetch/root/all/releases/amd64//autobuilds/latest-stage3-amd64-nomultilib-systemd-mergedusr.txt | tail -n1 | awk '{print $1;}') && \
podman import -c 'CMD ["/usr/bin/bash"]' $(find ${HOME}/containers/gentoo/gentoo-base -type f -name 'stage3*xz' 2> /dev/null | tail -n1) gentoo/stage3:nomultilib-systemd-merged && \
podman build --squash-all \
sudo podman import -c 'CMD ["/usr/bin/bash"]' $(find ${HOME}/containers/gentoo/gentoo-base -type f -name 'stage3*xz' 2> /dev/null | tail -n1) gentoo/stage3:nomultilib-systemd-merged && \
sudo podman build --squash-all \
-f ${HOME}/containers/gentoo/gentoo-base/Containerfile \
-v ${HOME}/.local/share/containers/storage/volumes/gentoo_repo/_data:/var/db/repos \
-v ${HOME}/.local/share/containers/storage/volumes/gentoo_distfiles/_data:/var/cache/distfiles \
-v /var/db/repos:/var/db/repos \
-v /var/cache/distfiles:/var/cache/distfiles \
--secret=id=ansible-homelab-vaultpass,src=${HOME}/containers/gentoo/gentoo-base/vaultpass \
--build-arg=LOCAL_MIRROR="http://alienware.hl.rahil.website/" \
--build-arg=ANSIBLE_REPO="https://gitlab.com/rahilarious/ansible-homelab.git" \
Expand Down

0 comments on commit 9b40aab

Please sign in to comment.