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
91405413
Commit
91405413
authored
Dec 19, 2020
by
James T. Lee
Browse files
Build against 'portage' Puppet environment
parent
7c753cee
Pipeline
#187
passed with stage
in 37 minutes and 36 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
13 deletions
+19
-13
.gitlab-ci.yml
.gitlab-ci.yml
+10
-7
Containerfile
Containerfile
+9
-0
amd64-server.haswell/Containerfile
amd64-server.haswell/Containerfile
+0
-6
No files found.
.gitlab-ci.yml
View file @
91405413
---
---
variables
:
JOBS
:
8
default
:
default
:
image
:
'
quay.io/containers/buildah'
image
:
'
quay.io/containers/buildah'
before_script
:
before_script
:
-
'
cp
"$REGISTRIES_CONF"
/etc/containers/registries.conf'
-
'
cp
"$REGISTRIES_CONF"
/etc/containers/registries.conf'
'
Build
nest/stage1:
amd64-server.
haswell'
:
'
Build
nest/stage1:haswell
-server
'
:
stage
:
'
build'
stage
:
'
build'
tags
:
tags
:
[
'
nest'
]
-
'
nest'
script
:
script
:
-
'
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
--build-arg
STAGE0_TAG=haswell
--build-arg
FACTER_build=stage1
--build-arg
FACTER_build=stage1
--build-arg
FACTER_makeopts="-j4"
--build-arg
FACTER_emerge_default_opts="--jobs=${JOBS}
--usepkg"
--build-arg
FACTER_makeopts="-j${JOBS}"
-v
/nest:/nest
-v
/nest:/nest
-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"
-t
"${CI_REGISTRY_IMAGE}:amd64-server.haswell"
-t
"${CI_REGISTRY_IMAGE}:haswell-server"
.'
amd64-server.haswell'
-
'
buildah
push
--creds="${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD}"
"${CI_REGISTRY_IMAGE}:haswell-server"'
-
'
buildah
push
--creds="${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD}"
"${CI_REGISTRY_IMAGE}:amd64-server.haswell"'
Containerfile
0 → 100644
View file @
91405413
ARG STAGE0_TAG
FROM nest/stage0:${STAGE0_TAG}
ARG FACTER_build
ARG FACTER_emerge_default_opts
ARG FACTER_makeopts
RUN puppet agent --test --environment=portage --certname ci --logdir /var/log/puppet --rundir /var/run/puppet --vardir /var/lib/puppet --runtimeout 0; [ $? -eq 2 ]
CMD ["/bin/zsh"]
amd64-server.haswell/Containerfile
deleted
100644 → 0
View file @
7c753cee
FROM nest/stage0:amd64-server.haswell
ARG FACTER_build
ARG FACTER_makeopts
RUN git clone --depth=1 https://gitlab.james.tl/nest/gentoo/portage.git /var/cache/portage/gentoo
RUN puppet agent --test --certname ci --logdir /var/log/puppet --rundir /var/run/puppet --vardir /var/lib/puppet --runtimeout 0; [ $? -eq 2 ]
CMD ["/bin/zsh"]
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