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

James T. Lee's avatar
James T. Lee committed
4
ARG FACTER_build=stage1
5
ARG FACTER_emerge_default_opts
James T. Lee's avatar
James T. Lee committed
6
ARG FACTER_makeopts
7
ARG FEATURES
8
ARG PROFILE
James T. Lee's avatar
James T. Lee committed
9

10
11
12
13
14
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 ]

James T. Lee's avatar
James T. Lee committed
15
16
17
18
# Locale is managed by Puppet, but
# it also needs to be persisted in the image.
ENV LANG=en_US.UTF-8

19
20
# Switch to desired profile and make the base system consistent with it,
# breaking out of a possible circular dependency between mesa and libva.
21
RUN eselect profile set "nest:${PROFILE}"
22
23
24
25

# Debugging
RUN puppet agent --debug --test --tags nest::role::workstation::xmonad; [ $? -eq 2 ]

26
RUN emerge --info
27
RUN USE='-vaapi' emerge -v --update --deep --newuse --with-bdeps=y @world
28
RUN emerge -v --update --deep --newuse --with-bdeps=y @world
29
30
RUN emerge --depclean

31
# Configure the stage
James T. Lee's avatar
James T. Lee committed
32
RUN puppet agent --test --runtimeout 0; [ $? -eq 2 ]
33

34
RUN rm -rf /var/db/repos
35
36

CMD ["/bin/zsh"]