mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-01-01 05:14:39 +01:00
22 lines
894 B
Docker
22 lines
894 B
Docker
FROM pentoolinux/pentoo-core
|
|
|
|
# Setup repos
|
|
WORKDIR /var/db/repos/
|
|
# setup gentoo repo
|
|
RUN git clone https://github.com/gentoo/gentoo.git --depth 1
|
|
# setup pentoo repo
|
|
#RUN git clone https://github.com/pentoo/pentoo-overlay.git pentoo --depth 1
|
|
# Use the github checkout for pentoo, that's what we are testing
|
|
COPY . pentoo
|
|
|
|
#Regen doubles the time it takes for the action to run
|
|
#Revisit if this is worth running when we have >2 emerge calls
|
|
#RUN time FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox" emerge --regen --jobs=$(nproc) --quiet
|
|
|
|
WORKDIR /home
|
|
|
|
# disable minimal (pentoo-core is default minimal)
|
|
RUN sed -i 's# pentoo-minimal##' /etc/portage/make.conf
|
|
|
|
#test install pentoo/pentoo
|
|
RUN time FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox" emerge --getbinpkg=y --buildpkg=n --jobs=$(nproc) --load-average=$(nproc) --deep --update --newuse pentoo/pentoo --verbose --pretend
|