ARG STAGE0_TAG FROM nest/stage0:${STAGE0_TAG} ARG FACTER_build=stage1 ARG FACTER_emerge_default_opts ARG FACTER_makeopts ARG PROFILE RUN eix-sync -q # Configure locales and set up some conveniences RUN puppet agent --test --certname ci --environment main --tags nest::base::distcc,nest::base::locale,nest::base::portage,nest::base::puppet --logdir /var/log/puppet --rundir /var/run/puppet --vardir /var/lib/puppet --runtimeout 0; [ $? -eq 2 ] # Locale is managed by Puppet, but # it also needs to be persisted in the image. ENV LANG=en_US.UTF-8 # Switch to desired profile and make the base system consistent with it, # breaking out of a possible circular dependency between mesa and libva. RUN eselect profile set "nest:${PROFILE}" RUN emerge --info RUN USE='-vaapi' emerge -v --update --deep --newuse --with-bdeps=y @world RUN emerge -v --update --deep --newuse --with-bdeps=y @world RUN emerge --depclean # Configure the stage RUN puppet agent --test --runtimeout 0; [ $? -eq 2 ] RUN rm -rf /var/db/repos CMD ["/bin/zsh"]