Dockerfile 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. FROM test-target-base
  2. RUN yum install -y rpm-build rpmdevtools createrepo && \
  3. rpmdev-setuptree && \
  4. mkdir -p /mnt/localrepo
  5. ADD root /
  6. # we will build some RPMs that can be used to break yum update in tests.
  7. RUN cd /root/rpmbuild/SOURCES && \
  8. mkdir break-yum-update-1.0 && \
  9. tar zfc foo.tgz break-yum-update-1.0 && \
  10. rpmbuild -bb /root/break-yum-update.spec && \
  11. yum install -y /root/rpmbuild/RPMS/noarch/break-yum-update-1.0-1.noarch.rpm && \
  12. rpmbuild -bb /root/break-yum-update-2.spec && \
  13. mkdir /mnt/localrepo/break-yum && \
  14. cp /root/rpmbuild/RPMS/noarch/break-yum-update-1.0-2.noarch.rpm /mnt/localrepo/break-yum && \
  15. createrepo /mnt/localrepo/break-yum
  16. # we'll also build some RPMs that can be used to exercise OCP package version tests.
  17. RUN cd /root/rpmbuild/SOURCES && \
  18. mkdir atomic-openshift-3.2 && \
  19. mkdir atomic-openshift-3.3 && \
  20. tar zfc ose.tgz atomic-openshift-3.{2,3} && \
  21. rpmbuild -bb /root/ose-3.2.spec && \
  22. rpmbuild -bb /root/ose-3.3.spec && \
  23. mkdir /mnt/localrepo/ose-3.{2,3} && \
  24. cp /root/rpmbuild/RPMS/noarch/atomic-openshift*-3.2-1.noarch.rpm /mnt/localrepo/ose-3.2 && \
  25. cp /root/rpmbuild/RPMS/noarch/{openvswitch-2.4,docker-1.10}-1.noarch.rpm /mnt/localrepo/ose-3.2 && \
  26. createrepo /mnt/localrepo/ose-3.2 && \
  27. cp /root/rpmbuild/RPMS/noarch/atomic-openshift*-3.3-1.noarch.rpm /mnt/localrepo/ose-3.3 && \
  28. cp /root/rpmbuild/RPMS/noarch/{openvswitch-2.4,docker-1.10}-1.noarch.rpm /mnt/localrepo/ose-3.3 && \
  29. createrepo /mnt/localrepo/ose-3.3