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 0
Commits
5f957159
Commit
5f957159
authored
Dec 20, 2020
by
James T. Lee
Browse files
Split debug info into separate image
Also remove repos. Trying to reduce image size.
parent
564af3f1
Pipeline
#216
passed with stage
in 38 minutes and 9 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
.gitlab-ci.yml
.gitlab-ci.yml
+5
-1
Containerfile
Containerfile
+2
-2
Containerfile.debug
Containerfile.debug
+2
-0
No files found.
.gitlab-ci.yml
View file @
5f957159
...
@@ -8,10 +8,11 @@ default:
...
@@ -8,10 +8,11 @@ default:
before_script
:
before_script
:
-
'
cp
"$REGISTRIES_CONF"
/etc/containers/registries.conf'
-
'
cp
"$REGISTRIES_CONF"
/etc/containers/registries.conf'
'
Build
nest/stage0:
haswell'
:
'
Build
haswell'
:
stage
:
'
build'
stage
:
'
build'
tags
:
[
'
nest'
]
tags
:
[
'
nest'
]
script
:
script
:
-
'
mkdir
debug'
-
'
buildah
bud
--pull
-
'
buildah
bud
--pull
--creds="${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD}"
--creds="${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD}"
--security-opt
seccomp=unconfined
--security-opt
seccomp=unconfined
...
@@ -19,6 +20,9 @@ default:
...
@@ -19,6 +20,9 @@ default:
--build-arg
EMERGE_DEFAULT_OPTS="--jobs=${JOBS}
--usepkg"
--build-arg
EMERGE_DEFAULT_OPTS="--jobs=${JOBS}
--usepkg"
--build-arg
MAKEOPTS="-j${JOBS}"
--build-arg
MAKEOPTS="-j${JOBS}"
--build-arg
PROFILE="haswell/server"
--build-arg
PROFILE="haswell/server"
-v
${PWD}/debug:/usr/lib/debug
-v
/nest:/nest
-v
/nest:/nest
-t
"${CI_REGISTRY_IMAGE}:haswell"
.'
-t
"${CI_REGISTRY_IMAGE}:haswell"
.'
-
'
buildah
bud
-t
"${CI_REGISTRY_IMAGE}/debug:haswell"
-f
Containerfile.debug
.'
-
'
buildah
push
--creds="${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD}"
"${CI_REGISTRY_IMAGE}:haswell"'
-
'
buildah
push
--creds="${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD}"
"${CI_REGISTRY_IMAGE}:haswell"'
-
'
buildah
push
--creds="${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD}"
"${CI_REGISTRY_IMAGE}/debug:haswell"'
Containerfile
View file @
5f957159
...
@@ -21,6 +21,6 @@ RUN emerge -v --update --deep --newuse --with-bdeps=y @world
...
@@ -21,6 +21,6 @@ RUN emerge -v --update --deep --newuse --with-bdeps=y @world
RUN emerge --depclean
RUN emerge --depclean
RUN emerge -v --emptytree @world
RUN emerge -v --emptytree @world
# Install Puppet and
prep package provider
# Install Puppet and
clean up
RUN emerge -v app-admin/puppet app-portage/eix
RUN emerge -v app-admin/puppet app-portage/eix
RUN rm -rf /var/db/repos
&& eix-sync -q
RUN rm -rf /var/db/repos
Containerfile.debug
0 → 100644
View file @
5f957159
FROM scratch
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