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 1
Commits
dcae6d2d
Commit
dcae6d2d
authored
Dec 20, 2020
by
James T. Lee
Browse files
Switch to nest/tools/buildah; build debug image
parent
9eabd4cd
Pipeline
#223
passed with stage
in 14 minutes and 16 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
.gitlab-ci.yml
.gitlab-ci.yml
+8
-6
Containerfile
Containerfile
+3
-0
Containerfile.debug
Containerfile.debug
+3
-0
No files found.
.gitlab-ci.yml
View file @
dcae6d2d
---
---
variables
:
variables
:
JOBS
:
8
JOBS
:
8
STORAGE_DRIVER
:
'
vfs'
default
:
default
:
image
:
'
quay.io/container
s/buildah'
image
:
'
${CI_REGISTRY}/nest/tool
s/buildah
:haswell
'
before_script
:
before_script
:
-
'
cp
"$REGISTRIES_CONF"
/etc/containers/registries.conf
'
-
'
buildah
login
--username
"$CI_REGISTRY_USER"
--password
"$CI_REGISTRY_PASSWORD"
"$CI_REGISTRY"
'
'
Build
nest/stage1:
haswell-server'
:
'
Build
haswell-server'
:
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}"
--security-opt
seccomp=unconfined
--security-opt
seccomp=unconfined
--build-arg
STAGE0_TAG=haswell
--build-arg
STAGE0_TAG=haswell
--build-arg
FACTER_build=stage1
--build-arg
FACTER_build=stage1
...
@@ -21,6 +20,9 @@ default:
...
@@ -21,6 +20,9 @@ default:
--build-arg
FACTER_makeopts="-j${JOBS}"
--build-arg
FACTER_makeopts="-j${JOBS}"
-v
"${PUPPET_CERTIFICATE}:/etc/puppetlabs/puppet/ssl/certs/ci.pem"
-v
"${PUPPET_CERTIFICATE}:/etc/puppetlabs/puppet/ssl/certs/ci.pem"
-v
"${PUPPET_PRIVATE_KEY}:/etc/puppetlabs/puppet/ssl/private_keys/ci.pem"
-v
"${PUPPET_PRIVATE_KEY}:/etc/puppetlabs/puppet/ssl/private_keys/ci.pem"
-v
"${PWD}/debug:/usr/lib/debug"
-v
/nest:/nest
-v
/nest:/nest
-t
"${CI_REGISTRY_IMAGE}:haswell-server"
.'
-t
"${CI_REGISTRY_IMAGE}:haswell-server"
.'
-
'
buildah
push
--creds="${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD}"
"${CI_REGISTRY_IMAGE}:haswell-server"'
-
'
buildah
bud
--build-arg
STAGE0_TAG=haswell
-t
"${CI_REGISTRY_IMAGE}/debug:haswell-server"
-f
Containerfile.debug
.'
-
'
buildah
push
"${CI_REGISTRY_IMAGE}:haswell-server"'
-
'
buildah
push
"${CI_REGISTRY_IMAGE}/debug:haswell-server"'
Containerfile
View file @
dcae6d2d
...
@@ -4,6 +4,9 @@ FROM nest/stage0:${STAGE0_TAG}
...
@@ -4,6 +4,9 @@ FROM nest/stage0:${STAGE0_TAG}
ARG FACTER_build
ARG FACTER_build
ARG FACTER_emerge_default_opts
ARG FACTER_emerge_default_opts
ARG FACTER_makeopts
ARG FACTER_makeopts
RUN eix-sync -q
RUN puppet agent --test --certname ci --logdir /var/log/puppet --rundir /var/run/puppet --vardir /var/lib/puppet --runtimeout 0; [ $? -eq 2 ]
RUN puppet agent --test --certname ci --logdir /var/log/puppet --rundir /var/run/puppet --vardir /var/lib/puppet --runtimeout 0; [ $? -eq 2 ]
RUN rm -rf /var/db/repos
CMD ["/bin/zsh"]
CMD ["/bin/zsh"]
Containerfile.debug
0 → 100644
View file @
dcae6d2d
ARG STAGE0_TAG
FROM nest/stage0/debug:${STAGE0_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