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
Tools
R10k
Commits
2ef356fe
Commit
2ef356fe
authored
Dec 27, 2020
by
James T. Lee
Browse files
Initial build based on buildah tool
parents
Pipeline
#287
passed with stage
in 11 minutes and 4 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
.gitlab-ci.yml
.gitlab-ci.yml
+24
-0
Containerfile
Containerfile
+9
-0
Containerfile.debug
Containerfile.debug
+3
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
2ef356fe
---
default
:
image
:
'
${CI_REGISTRY}/nest/tools/buildah:${CI_HOST_CPU}'
before_script
:
-
'
buildah
login
-u
"$CI_REGISTRY_USER"
-p
"$CI_REGISTRY_PASSWORD"
"$CI_REGISTRY"'
'
Build
haswell'
:
stage
:
'
build'
tags
:
[
'
nest'
]
script
:
-
'
mkdir
debug'
-
'
buildah
bud
--pull
--security-opt
seccomp=unconfined
--build-arg
STAGE1_TAG=haswell-server
--build-arg
FACTER_emerge_default_opts="$CI_HOST_EMERGE_DEFAULT_OPTS"
--build-arg
FACTER_makeopts="$CI_HOST_MAKEOPTS"
-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}:haswell"
.'
-
'
buildah
bud
--build-arg
STAGE1_TAG=haswell-server
-t
"${CI_REGISTRY_IMAGE}/debug:haswell"
-f
Containerfile.debug
.'
-
'
buildah
push
"${CI_REGISTRY_IMAGE}:haswell"'
-
'
buildah
push
"${CI_REGISTRY_IMAGE}/debug:haswell"'
Containerfile
0 → 100644
View file @
2ef356fe
ARG STAGE1_TAG
FROM nest/stage1:${STAGE1_TAG}
ARG FACTER_emerge_default_opts
ARG FACTER_makeopts
RUN eix-sync -q
RUN FACTER_tool=r10k puppet agent --test --runtimeout 0; [ $? -eq 2 ]
RUN rm -rf /var/db/repos
Containerfile.debug
0 → 100644
View file @
2ef356fe
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