Am Mon, 08 Sep 2014 23:20:14 -0500 hat Vagrant Cascadian vagrant@debian.org geschrieben:
Sorry for the late reply, I was stuffed with other work, so I couldn't take care of that yet.
On 2014-09-08 20:38:31 -0500, Michael Mrozek wrote:
Am Mon, 08 Sep 2014 09:44:45 -0500 hat Vagrant Cascadian vagrant@debian.org geschrieben:
Multistrap is a lot faster than debootstrap, (although its pretty close if you include the extra configure stage on the target hardware), but both methods have their advantages and disadvantages. Biggest disadvantage of both is that they don't cache the downloaded packages.
I would recommend using a caching proxy, such as squid-deb-proxy, approx, or apt-cacher-ng.
Is there a setup guide for that somewhere?
apt-get install squid-deb-proxy export http_proxy=http://127.0.0.1:8000
approx requires some configuration of /etc/approx/approx.conf to specify which mirrors it uses, and then pointing to approx as the mirror, typically running on port 9999.
Haven't tried apt-cacher-ng in many years, but I suspect it's similar.
Okay, which of the two do you suggest?
The server I'll run that with will be our normal webserver. So it runs apache with tons of virtual domains already.
Is that an issue with that proxy setup?
It sounds like debootstrap with qemu is the better way for us?
Overall, debootstrap or multistrap doesn't matter a whole lot. qemu-user-static works for many packages, but there may be some you may have troubles with; it really depends on the package set you end up wanting to use it with. I am presuming the build environment is also a Debian install running a standard Debian kernel... ?
Yes, the server runs a standard Debian: Linux kronos.dragonbox.de 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u1 x86_64 GNU/Linux
So, should I use debootstrap with qemu or qemu-user-static?
Is there a step-by-step guide for setting either up?
We'll also need a place to put the packages, so any recomendations for repo software are welcome too. I was looking mostly at using reprepro. (although even the lazy method of just running dpkg-scanpackages in a dir of .debs works fine for the amount of packages we have now :)
I recommend reprepro, as it handles signed repositories and it produces a repository with a standard repository layout out of the box.
Okay... I'll try to setup that within this week.
Manual install is fairly easy, getting automatic installs will take a bit more configuration.
Do you have a good guide for reprepro as well?
The workflow I use involves squid-deb-proxy for caching packages, qemu-debootstrap to create the working dir, and configuring schroot to use it:
Do you think you could set that up on our server? I could give you SSH user login.
Sure. It would require installing a few packages, and running debootstrap as root. You may need to give certain users limited root-like privledges for sbuild to work.
Could we meet in IRC sometime so we can set that up together? Or any other messenger?
Thanks :)