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
41ecc867
Commit
41ecc867
authored
Mar 15, 2021
by
James T. Lee
Browse files
Merge debug files into image
parent
5a5e5b37
Pipeline
#604
failed with stage
in 14 minutes and 34 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
.gitlab-ci.yml
.gitlab-ci.yml
+0
-4
Containerfile
Containerfile
+4
-0
Containerfile.debug
Containerfile.debug
+0
-3
No files found.
.gitlab-ci.yml
View file @
41ecc867
...
...
@@ -4,7 +4,6 @@
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}"
...
...
@@ -14,12 +13,9 @@
-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
...
...
Containerfile
View file @
41ecc867
ARG STAGE1_TAG
FROM nest/stage1:${STAGE1_TAG}
FROM nest/stage1/debug:${STAGE1_TAG} AS debug
ARG FACTER_build=stage2
ARG FACTER_emerge_default_opts
ARG FACTER_makeopts
ARG PROFILE
# Merge debug files into image so all hosts have them
COPY --from=debug / /usr/lib/debug/
RUN eix-sync -q
# Switch to desired profile and make the base system consistent with it
...
...
Containerfile.debug
deleted
100644 → 0
View file @
5a5e5b37
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