Add repos.conf into container

This commit is contained in:
Nils Freydank 2023-07-15 20:52:26 +02:00
parent feccb525db
commit b28b8d10e4
Signed by: nfr
GPG Key ID: 0F1DEAB2D36AD112
4 changed files with 26 additions and 0 deletions

View File

@ -13,6 +13,9 @@ RUN eselect profile set "default/linux/amd64/17.1/no-multilib/systemd/merged-usr
RUN rm --one-file-system /etc/portage/make.conf
COPY make.conf /etc/portage/make.conf
RUN chown root:root -R /etc/portage/make.conf
# Add overlays in /var/db/repos.
COPY repos.conf /etc/portage/repos.conf
RUN chown root:root -R /etc/portage/make.conf
# Update the compiler
RUN emerge --oneshot --usepkg sys-devel/gcc:13
RUN eselect gcc set x86_64-pc-linux-gnu-13 && source /etc/profile

9
repos.conf/gentoo.conf Normal file
View File

@ -0,0 +1,9 @@
[DEFAULT]
main-repo = gentoo
[gentoo]
auto-sync = no
location = /var/db/repos/gentoo
# higher priority number mean preferation in case ebuilds exist in >1 repo.
priority = 9999
volatile = yes

View File

@ -0,0 +1,7 @@
[holgersson-overlay]
auto-sync = no
location = /var/db/repos/holgersson-overlay
masters = gentoo
# higher priority number mean preferation in case ebuilds exist in >1 repo.
priority = 10
volatile = yes

7
repos.conf/overlay.conf Normal file
View File

@ -0,0 +1,7 @@
[local]
auto-sync = no
location = /var/db/repos/overlay
# higher priority number mean preferation in case ebuilds exist in >1 repo.
priority = 20
masters = gentoo
volatile = yes