commit
429487231f
@ -30,3 +30,5 @@ srpm: dist-snapshot
|
|||||||
|
|
||||||
rpm: srpm
|
rpm: srpm
|
||||||
./rpmbuild-cwd --rebuild $(PKG_VER)*.src.rpm
|
./rpmbuild-cwd --rebuild $(PKG_VER)*.src.rpm
|
||||||
|
repomanage -o | xargs -r rm
|
||||||
|
createrepo_c .
|
||||||
|
24
tests-container/CentOS-Base.repo
Normal file
24
tests-container/CentOS-Base.repo
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# CentOS-Base.repo
|
||||||
|
#
|
||||||
|
# The mirror system uses the connecting IP address of the client and the
|
||||||
|
# update status of each mirror to pick mirrors that are updated to and
|
||||||
|
# geographically close to the client. You should use this for CentOS updates
|
||||||
|
# unless you are manually picking other mirrors.
|
||||||
|
#
|
||||||
|
# If the mirrorlist= does not work for you, as a fall back you can try the
|
||||||
|
# remarked out baseurl= line instead.
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
[base]
|
||||||
|
name=CentOS-$releasever - Base
|
||||||
|
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
|
||||||
|
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
|
||||||
|
gpgcheck=0
|
||||||
|
|
||||||
|
#released updates
|
||||||
|
[updates]
|
||||||
|
name=CentOS-$releasever - Updates
|
||||||
|
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
|
||||||
|
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
|
||||||
|
gpgcheck=0
|
9
tests-container/Dockerfile
Normal file
9
tests-container/Dockerfile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM centos
|
||||||
|
ADD centos-atomic-7.repo /etc/yum.repos.d/centos-atomic-7.repo
|
||||||
|
ADD local.repo /etc/yum.repos.d/local.repo
|
||||||
|
ADD repo /var/tmp/repo
|
||||||
|
ADD pkgblob.tar /var/tmp/centos
|
||||||
|
ADD test-centos.json /var/tmp/test/test-centos.json
|
||||||
|
ADD test-centos.repo /var/tmp/test/test-centos.repo
|
||||||
|
ADD container-build.sh /usr/bin/container-build
|
||||||
|
RUN /usr/bin/container-build
|
5
tests-container/centos-atomic-7.repo
Normal file
5
tests-container/centos-atomic-7.repo
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[centos-atomic7-testing]
|
||||||
|
name=centos-atomic7-testing
|
||||||
|
baseurl=https://cbs.centos.org/repos/atomic7-testing/x86_64/os/
|
||||||
|
enabled=1
|
||||||
|
gpgcheck=0
|
9
tests-container/container-build.sh
Executable file
9
tests-container/container-build.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -xeuo pipefail
|
||||||
|
yum -y install rpm-ostree
|
||||||
|
cd /var/tmp
|
||||||
|
mkdir -p test
|
||||||
|
cd test
|
||||||
|
mkdir repo
|
||||||
|
ostree --repo=repo init --mode=bare-user
|
||||||
|
|
4
tests-container/local.repo
Normal file
4
tests-container/local.repo
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[local]
|
||||||
|
name=local
|
||||||
|
baseurl=file:///var/tmp/repo
|
||||||
|
gpgcheck=0
|
6
tests-container/test-centos.json
Normal file
6
tests-container/test-centos.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"ref": "testos/x86_64/test",
|
||||||
|
"repos": ["test-centos"],
|
||||||
|
"packages": ["kernel", "systemd"],
|
||||||
|
"selinux": true
|
||||||
|
}
|
4
tests-container/test-centos.repo
Normal file
4
tests-container/test-centos.repo
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[test-centos]
|
||||||
|
name=test-centos
|
||||||
|
baseurl=file:///var/tmp/centos/pkgblob
|
||||||
|
gpgcheck=0
|
Loading…
Reference in New Issue
Block a user