diff options
author | OpenShift Bot <eparis+openshiftbot@redhat.com> | 2017-04-26 01:23:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-26 01:23:28 -0500 |
commit | c12b00944940cd7f425323e1598a4b7683ddaf75 (patch) | |
tree | d1cb21b763579a5c5a2fa5dd0c30078b7383bbe7 /test/integration/openshift_health_checker/builds/aos-package-checks/Dockerfile | |
parent | 760bdbc78081d9780d2618c422f31913dd9d38c7 (diff) | |
parent | e5f14b515b07bcfa2079c3e68c35fee3e97970c7 (diff) | |
download | openshift-c12b00944940cd7f425323e1598a4b7683ddaf75.tar.gz openshift-c12b00944940cd7f425323e1598a4b7683ddaf75.tar.bz2 openshift-c12b00944940cd7f425323e1598a4b7683ddaf75.tar.xz openshift-c12b00944940cd7f425323e1598a4b7683ddaf75.zip |
Merge pull request #3816 from sosiouxme/20170328-integration-tests
Merged by openshift-bot
Diffstat (limited to 'test/integration/openshift_health_checker/builds/aos-package-checks/Dockerfile')
-rw-r--r-- | test/integration/openshift_health_checker/builds/aos-package-checks/Dockerfile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/integration/openshift_health_checker/builds/aos-package-checks/Dockerfile b/test/integration/openshift_health_checker/builds/aos-package-checks/Dockerfile new file mode 100644 index 000000000..8542029f6 --- /dev/null +++ b/test/integration/openshift_health_checker/builds/aos-package-checks/Dockerfile @@ -0,0 +1,30 @@ +FROM test-target-base + +RUN yum install -y rpm-build rpmdevtools createrepo && \ + rpmdev-setuptree && \ + mkdir -p /mnt/localrepo +ADD root / + +# we will build some RPMs that can be used to break yum update in tests. +RUN cd /root/rpmbuild/SOURCES && \ + mkdir break-yum-update-1.0 && \ + tar zfc foo.tgz break-yum-update-1.0 && \ + rpmbuild -bb /root/break-yum-update.spec && \ + yum install -y /root/rpmbuild/RPMS/noarch/break-yum-update-1.0-1.noarch.rpm && \ + rpmbuild -bb /root/break-yum-update-2.spec && \ + mkdir /mnt/localrepo/break-yum && \ + cp /root/rpmbuild/RPMS/noarch/break-yum-update-1.0-2.noarch.rpm /mnt/localrepo/break-yum && \ + createrepo /mnt/localrepo/break-yum + +# we'll also build some RPMs that can be used to exercise OCP package version tests. +RUN cd /root/rpmbuild/SOURCES && \ + mkdir atomic-openshift-3.2 && \ + mkdir atomic-openshift-3.3 && \ + tar zfc ose.tgz atomic-openshift-3.{2,3} && \ + rpmbuild -bb /root/ose-3.2.spec && \ + rpmbuild -bb /root/ose-3.3.spec && \ + mkdir /mnt/localrepo/ose-3.{2,3} && \ + cp /root/rpmbuild/RPMS/noarch/atomic-openshift*-3.2-1.noarch.rpm /mnt/localrepo/ose-3.2 && \ + createrepo /mnt/localrepo/ose-3.2 && \ + cp /root/rpmbuild/RPMS/noarch/atomic-openshift*-3.3-1.noarch.rpm /mnt/localrepo/ose-3.3 && \ + createrepo /mnt/localrepo/ose-3.3 |