Containerfile 905 Bytes
Newer Older
1
2
3
ARG STAGE0_TAG
FROM nest/stage0:${STAGE0_TAG}

4
ARG FACTER_emerge_default_opts
James T. Lee's avatar
James T. Lee committed
5
ARG FACTER_makeopts
6
ARG PROFILE
James T. Lee's avatar
James T. Lee committed
7

8
RUN eix-sync -q
9
10

# Set up some conveniences
11
RUN FACTER_build=stage1 puppet agent --test --certname ci --environment main --tags nest::base::distcc,nest::base::portage,nest::base::puppet --logdir /var/log/puppet --rundir /var/run/puppet --vardir /var/lib/puppet --runtimeout 0; [ $? -eq 2 ]
12
13
14

# Switch to desired profile and make the base system consistent with it,
# breaking out of a possible circular dependency between mesa and libva.
15
16
RUN eselect profile set "nest:${PROFILE}"
RUN emerge --info
17
RUN USE='-vaapi' emerge -v --update --deep --newuse --with-bdeps=y @world
18
19
RUN emerge -v --update --deep --newuse --with-bdeps=y @world
RUN emerge --depclean
20
21

# Configure the stage
22
RUN FACTER_build=stage1 puppet agent --test --runtimeout 0; [ $? -eq 2 ]
23

24
RUN rm -rf /var/db/repos
25
26

CMD ["/bin/zsh"]