Commit 5f957159 authored by James T. Lee's avatar 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
...@@ -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"'
...@@ -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
FROM scratch
COPY debug/ /
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment