These should be added to @world by the Dockerfiles that require them
(it's possible that the trim script itself needs sys-apps/findutils,
and we may want to setup BusyBox before removing Bash).
then
IMG="${IMG}:${TAG}"
fi
- #sys-apps/openrc (/sbin/rc)
- #sys-apps/net-tools (/bin/hostname)
- #sys-devel/gettext (/usr/bin/envsubst)
docker run -t --name "${CONTAINER}" \
-v "${PWD}/empty-system.py:/tmp/empty-system.py" \
"${IMAGE}" /bin/bash -c "
/tmp/empty-system.py &&
- emerge --noreplace app-shells/bash sys-apps/findutils sys-apps/net-tools sys-apps/openrc sys-devel/gettext virtual/package-manager &&
emerge -v --with-bdeps=n --depclean &&
rm -rf /usr/portage" ||
die "failed to create ${CONTAINER}"