You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bob-core Dockerfile template has a run step that creates/appends/edits files in /etc/portage/.
But then a later step does COPY etc/ /etc/ which will clobber nearly all of what the RUN step did.
If I understand correctly the only thing from the RUN that will have any effect is the mkdir -p /etc/portage/profifile.
Also l think the BOB_SYNC_URI and BOB_SYNC_TYPE disappeared in 6edaa79.
This is the relevant snippet of the Dockerfile template.
RUN set -x && \
echo 'GENTOO_MIRRORS="http://distfiles.gentoo.org/"' >> /etc/portage/make.conf && \
mkdir -p /etc/portage/repos.conf && \
sed -e 's|^sync-uri =.*|sync-uri = ${BOB_SYNC_URI}|' \
-e 's|^sync-type =.*|sync-type = ${BOB_SYNC_TYPE}|' \
/usr/share/portage/config/repos.conf > /etc/portage/repos.conf/gentoo.conf && \
mkdir -p /etc/portage/profile
# DEF_BUILDER_* is only active in configure_bob() hook, generally only differs when using crossdevENV DEF_CHOST="${BOB_CHOST}" \
DEF_CFLAGS="${BOB_CFLAGS}" \
DEF_CXXFLAGS="${BOB_CXXFLAGS}" \
DEF_BUILDER_CHOST="${BOB_BUILDER_CHOST}" \
DEF_BUILDER_CFLAGS="${BOB_BUILDER_CFLAGS}" \
DEF_BUILDER_CXXFLAGS="${BOB_BUILDER_CXXFLAGS}" \
PKGDIR="/packages/${BOB_CHOST}"COPY etc/ /etc/
In gentoo stage3 tarballs (and docker images) /etc/portage/profile/ dir exists. So I think the RUN step can be dropped.
The text was updated successfully, but these errors were encountered:
berney
added a commit
to berney/kubler
that referenced
this issue
Apr 30, 2023
The bob-core Dockerfile template has a run step that creates/appends/edits files in
/etc/portage/
.But then a later step does
COPY etc/ /etc/
which will clobber nearly all of what theRUN
step did.If I understand correctly the only thing from the RUN that will have any effect is the
mkdir -p /etc/portage/profifile
.Also l think the
BOB_SYNC_URI
andBOB_SYNC_TYPE
disappeared in 6edaa79.This is the relevant snippet of the Dockerfile template.
In gentoo stage3 tarballs (and docker images)
/etc/portage/profile/
dir exists. So I think theRUN
step can be dropped.The text was updated successfully, but these errors were encountered: