Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nest
Stage 2
Commits
13aa0a77
Commit
13aa0a77
authored
Feb 28, 2021
by
James T. Lee
Browse files
Initial build
parents
Pipeline
#566
passed with stage
in 21 minutes and 34 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
0 deletions
+53
-0
.gitlab-ci.yml
.gitlab-ci.yml
+31
-0
Containerfile
Containerfile
+19
-0
Containerfile.debug
Containerfile.debug
+3
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
13aa0a77
---
.template
:
&template
image
:
'
${CI_REGISTRY}/nest/tools/buildah:${CI_HOST_CPU}'
stage
:
'
build'
tags
:
[
'
nest'
]
script
:
-
'
mkdir
debug'
-
'
buildah
login
-u
"$CI_REGISTRY_USER"
-p
"$CI_REGISTRY_PASSWORD"
"$CI_REGISTRY"'
-
'
buildah
bud
--security-opt
seccomp=unconfined
--build-arg
STAGE1_TAG="${CPU}-${ROLE}"
--build-arg
FACTER_emerge_default_opts="$CI_HOST_EMERGE_DEFAULT_OPTS"
--build-arg
FACTER_makeopts="$CI_HOST_MAKEOPTS"
--build-arg
PROFILE="$PROFILE"
-v
"/usr/bin/qemu-${QEMU_ARCH}:/usr/bin/qemu-${QEMU_ARCH}:ro"
-v
"${PUPPET_CERTIFICATE}:/etc/puppetlabs/puppet/ssl/certs/ci.pem"
-v
"${PUPPET_PRIVATE_KEY}:/etc/puppetlabs/puppet/ssl/private_keys/ci.pem"
-v
"${PWD}/debug:/usr/lib/debug"
-v
/nest:/nest
-t
"${CI_REGISTRY_IMAGE}:${PLATFORM}-${ROLE}"
.'
-
'
buildah
bud
--build-arg
STAGE1_TAG="${CPU}-${ROLE}"
-t
"${CI_REGISTRY_IMAGE}/debug:${PLATFORM}-${ROLE}"
-f
Containerfile.debug
.'
-
'
buildah
push
"${CI_REGISTRY_IMAGE}:${PLATFORM}-${ROLE}"'
-
'
buildah
push
"${CI_REGISTRY_IMAGE}/debug:${PLATFORM}-${ROLE}"'
'
Build
haswell-server'
:
<<
:
*template
variables
:
CPU
:
'
haswell'
PLATFORM
:
'
haswell'
ROLE
:
'
server'
PROFILE
:
'
haswell/server'
QEMU_ARCH
:
'
x86_64'
Containerfile
0 → 100644
View file @
13aa0a77
ARG STAGE1_TAG
FROM nest/stage1:${STAGE1_TAG}
ARG FACTER_build=stage2
ARG FACTER_emerge_default_opts
ARG FACTER_makeopts
ARG PROFILE
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
RUN puppet agent --environment stage2 --test --runtimeout 0; [ $? -eq 2 ]
RUN rm -rf /var/db/repos
Containerfile.debug
0 → 100644
View file @
13aa0a77
ARG STAGE1_TAG
FROM nest/stage1/debug:${STAGE1_TAG}
COPY debug/ /
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment