Commit Graph

12 Commits

Author SHA1 Message Date
Olaf Meeuwissen 01d9130021 Use here documents in a consistent manner 2017-08-19 15:09:08 +09:00
Olaf Meeuwissen d92fe56e7b Remove unneeded files from the image
Keeping out the `/dev/` tree is done when tarring things up so that
the `bootstrap.sh` script will have access to devices at run-time.
This approach also protects against removing devices that have been
mounted into the chroot, if any (e.g. devpts).
2017-08-19 14:27:34 +09:00
Olaf Meeuwissen e4bd65c005 Set a generic yet descriptive hostname
The default is to inherit the hostname from the build environment.
2017-08-19 14:27:34 +09:00
Olaf Meeuwissen bbf24ada3b Replace /etc/resolv.conf content with something generic 2017-08-18 22:55:46 +09:00
Olaf Meeuwissen ad5af964fc Don't run init scripts from installation scripts 2017-08-18 22:55:46 +09:00
Olaf Meeuwissen 6dabc61089 Remove automatically installed packages whenever possible
This marks all packages installed by `debootstrap` as automatic and
sets up policy for pruning purposes before purging unneeded ones.
The devuan-keyring is explicitly kept.
2017-08-18 22:55:16 +09:00
Olaf Meeuwissen 18399c5561 Speed up package installation (especially on spinning disks) 2017-08-18 12:23:36 +09:00
Olaf Meeuwissen b636a469a2 Keep package index files small
This is mostly for those cases where Dockerfile RUN instructions do
not run `remove-apt-lists`, either by accident or on purpose.
2017-08-18 12:20:31 +09:00
Olaf Meeuwissen fa237f67eb Don't bother downloading translated package descriptions
This might speed up `apt-get update` depending on environment settings
and availability of translations.
2017-08-18 12:17:18 +09:00
Olaf Meeuwissen d3530e7ea9 Fix permissions to match installed state 2017-08-18 10:54:25 +09:00
Olaf Meeuwissen 6595d68dd1 Fix overly zealous removal of APT state and cache files
Removal of the package index files, aka lists, is something that needs
to be done explicitly.  Doing so at `APT::Update::Post-Invoke` defeats
the purpose of running `apt-get update` in the first place.
2017-08-17 17:11:06 +09:00
Olaf Meeuwissen 0fa8b8505b Keep "flab" out of the image
This integrates a custom script into the APT configuration.  That same
script is also run during the bootstrap.  A second custom script takes
care of the integration and removes itself when done.

Complements 13f84159.
2017-08-17 11:36:04 +09:00