mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-05 11:48:33 +08:00
This change introduces a set of Jenkins pipelines for building MBS images and running integration tests against Koji using those images. These pipelines are directly based on the WaiverDB pipeline work: https://pagure.io/waiverdb/blob/master/f/openshift The results of those tests are used to provide feedback to Pagure PRs and to promote images through a series of environments, which may be used to implement a continuous deployment process. The current test cases, written in Groovy, are: - module-build-init: initate a module build and check that tags and targets in Koji are created correctly - module-build-cgimport: build an empty module and ensure that results are imported correctly into Koji, using the CGImport interface
18 lines
348 B
Bash
Executable File
18 lines
348 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
export USER_ID=$(id -u)
|
|
export GROUP_ID=$(id -g)
|
|
|
|
cp /etc/passwd /tmp/passwd
|
|
cat >> /tmp/passwd <<EOF
|
|
default:x:${USER_ID}:${GROUP_ID}:Default Application User:${HOME}:/sbin/nologin
|
|
EOF
|
|
|
|
export LD_PRELOAD=libnss_wrapper.so
|
|
export NSS_WRAPPER_PASSWD=/tmp/passwd
|
|
export NSS_WRAPPER_GROUP=/etc/group
|
|
|
|
exec httpd -D FOREGROUND $@
|