andsens / bootstrap-vz

Bootstrap Debian images for virtualized environments
http://bootstrap-vz.readthedocs.io/
Other
263 stars 145 forks source link

Add apt_repo plugin to add additional apt repos during image build #451

Closed vmlintu-nosto closed 6 years ago

vmlintu-nosto commented 6 years ago

apt_repo plugin supports adding additional apt repositories that can be used to install packages during image build. To support S3 backed apt repos, apt-transport-s3 and ca-certificate packages are installed during debootstrap.

andsens commented 6 years ago

I'm fairly certain that all of this can be done already. The bootstrapper field has an additional option of including packages during bootstrapping. Adding repo keys and the likes can then be done via the normal apt repo modification fields.

Feel free to reopen if the above does somehow not solve the problem that your plugin solves :-)

vmlintu-nosto commented 6 years ago

It looks like I had misunderstood some of the functionality earlier and this can indeed be done without my plugin. Thanks for pointing this out! I think the gpg keychain needs to be stored locally instead of downloading it, but that is no problem in this case.