#1081 docker: make sure we enable chroots that have available mock configs
Merged 4 years ago by frostyx. Opened 4 years ago by frostyx.
copr/ frostyx/copr docker-chroots  into  master

@@ -20,6 +20,7 @@ 

                     python3-alembic \

                     postgresql-server \

                     redis \

+                    mock-core-configs \

                     tito

  

  COPY . /copr

@@ -8,8 +8,8 @@ 

  chown -R copr-fe:copr-fe /usr/share/copr

  

  cd /usr/share/copr/coprs_frontend/ && sudo -u copr-fe copr-frontend create_db --alembic alembic.ini

- sudo -u copr-fe copr-frontend create_chroot fedora-{26,27,rawhide}-{i386,x86_64} epel-{6,7}-x86_64 epel-6-i386

- 

+ sudo -u copr-fe copr-frontend create_chroot \

+     $(ls /etc/mock/{fedora,epel}-*-{i386,x86_64}.cfg |xargs -I{} -n1 basename {} .cfg)

  

  # selinux: make data dir writeable for httpd

  # TODO: probly correct solution is to uncomment first four lines in

We have a recurring problem, that we enable only some outdated chroots
and therefore builds fail because of missing mock configs.

Another way to solve this would be to enable just rawhide chroots,
but I feel like this one is more useful.

Metadata Update from @frostyx:
- Pull-request tagged with: can-be-merged

4 years ago

rebased onto 071ce2c

4 years ago

Pull-Request has been merged by frostyx

4 years ago