Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Sep 2014 11:52:01 +0100
From:      Arthur Chance <freebsd@qeng-ho.org>
To:        Matthias Apitz <guru@unixarea.de>, freebsd-questions@freebsd.org
Subject:   Re: A lot of pkg problems
Message-ID:  <541967D1.90108@qeng-ho.org>
In-Reply-To: <20140917085023.GA1534@tiny-r269739>
References:  <B2E0472020754D45B72E9B0CE35278CAB720593587@EXCHANGE.mail.starnet.cz> <2509308.9rytrV7MvD@penguin> <5411A89B.4010707@gmail.com> <1812950.bWcWxrzvJI@penguin> <54189CD1.7070102@webrz.net> <5418A5EE.1030304@hiwaay.net> <alpine.BSF.2.11.1409161505350.93245@wonkity.com> <B2E0472020754D45B72E9B0CE35278CAB7242FCA9B@EXCHANGE.mail.starnet.cz> <541936C5.3080601@qeng-ho.org> <20140917085023.GA1534@tiny-r269739>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On 17/09/2014 09:50, Matthias Apitz wrote:
> El día Wednesday, September 17, 2014 a las 08:22:45AM +0100, Arthur Chance escribió:
>
>>
>> Using poudriere to build your own repo is *very* easy and lets you build
>> only the packages you need (so is quicker than waiting the four-ish days
>> that the main repository takes to build everything), with the options
>> you want.
>
> I can ACK this. I started in August with poudriere and pkg (before I was
> used to use the ports tree directly to creat some 1200 pkg_* packages
> for my farm of laptops/netbook.
>
> Ones you have the pieces together and the poudriere server setup, all is
> very easy and works as it should.
>
> The only thing I could not manage until now, was setting up a webserver
> to monitor the progress of the running poudriere jail. Do you have a
> small howto for this? I have nginx installed in the host, but can not
> get the dynamic movie into the browser firefox.

It's probably not the most elegant way of working, but this works for 
me. In my nginx.conf the poudriere related bits are

         location /pkgs/ {
             alias /usr/local/poudriere/data/packages/;
             autoindex on;
             autoindex_exact_size off;
             autoindex_localtime on;
         }

         location /logs/ {
             alias /usr/local/poudriere/data/logs/;
             index  index.html;
             autoindex on;
             autoindex_exact_size off;
             autoindex_localtime on;

             default_type text/html;
             types {
                 text/plain log;
             }
         }

That's with poudriere's BASEFS=/usr/local/poudriere

My repo URL is

http://${HOST}/pkgs/${JAIL}-default

and my URL for monitoring the build is

http://${HOST}/logs/bulk/${JAIL}-default/latest/index.html

where ${JAIL} is the poudriere jail I'm using. If you use -z SET for 
different options, replace "default" with ${SET}.

You might want to add

URL_BASE=file://${BASEFS}/data/logs

or

URL_BASE=http://${HOST}${BASEFS}/data/logs

to your poudriere.conf as well, so it can give you helpful pointers on 
the build machine. Note there's no slash before ${BASEFS} in those URLs 
as it begins with one already.



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?541967D1.90108>