This is a missing piece on the internet - the poudriere Apache vhost config.

You only need to adjust the datadir path (where it drops the packages) and your servername.

 

<VirtualHost *:80>
    ServerAdmin admin@example.com
    ServerName puder.intern.somewhe.re
    DocumentRoot /usr/local/share/poudriere/html
    Alias /packages /usr/local/poudriere_data  # your poudriere dir
    Alias /data /usr/local/poudriere_data/logs/bulk # ...

   SetOutputFilter DEFLATE
   # example of how to compress ONLY html, plain text and xml
   AddOutputFilterByType DEFLATE text/plain text/html text/xml
   # Make sure proxies don't deliver the wrong content
   Header append Vary User-Agent env=!dont-vary


    <Directory "/usr/local/share/poudriere/html">
        Order allow,deny
        Allow from all
    </Directory>
    <Directory "/usr/local/poudriere_data">   # your poudriere dir
        Order allow,deny
        Allow from all
    </Directory>
    <Directory "/usr/local/poudriere_data/logs/bulk">
        Order allow,deny
        Allow from all
    </Directory>
    LogLevel debug
</VirtualHost>

 

Adjust the /usr/local/etc/poudriere.conf URI setting to match with your vhosts' ServerName directive.

 

 

The Web interface is straight out of a UX nightmares book. Make sure to spend some time with it right away. It does have some nice features, but you need to learn how to properly filter/sort to get useful info.

Here's another article I'm working on that has a lot of extra info about Poudriere:

FreeBSD - Poudriere multi-tenant setups

  • No labels