Containerfile 558 Bytes
Newer Older
James T. Lee's avatar
James T. Lee committed
1
2
ARG STAGE1_TAG
FROM nest/stage1:${STAGE1_TAG}
James T. Lee's avatar
James T. Lee committed
3
FROM nest/stage1/debug:${STAGE1_TAG} AS debug
James T. Lee's avatar
James T. Lee committed
4
5
6
7
8
9

ARG FACTER_build=stage2
ARG FACTER_emerge_default_opts
ARG FACTER_makeopts
ARG PROFILE

James T. Lee's avatar
James T. Lee committed
10
11
12
# Merge debug files into image so all hosts have them
COPY --from=debug / /usr/lib/debug/

James T. Lee's avatar
James T. Lee committed
13
14
15
16
17
18
19
20
RUN eix-sync -q

# Switch to desired profile and make the base system consistent with it
RUN eselect profile set "nest:${PROFILE}"
RUN emerge --info
RUN emerge -v --update --deep --newuse --with-bdeps=y @world

# Configure the stage
21
RUN puppet agent --test --runtimeout 0; [ $? -eq 2 ]