Olaf Meeuwissen
b3b55c14ce
Add build support for `ceres` too. Fixes #3
2017-10-24 21:20:23 +09:00
Olaf Meeuwissen
2bdd8e3aba
Add build support for `ascii`. Re #3
2017-10-23 20:53:40 +09:00
Olaf Meeuwissen
397fddc4e5
Put every suite in its own rootfs. Re #3
...
This makes it easier to build suites in parallel from a local checkout
and/or keep the rootfs's of local builds around for investigation.
2017-10-23 20:44:25 +09:00
Olaf Meeuwissen
0595d723ab
Protect against inconsistent use of / separators in APT paths
...
As a matter of fact, our own fallback would not even have worked :-(
The `readlink` invocations clean up duplicated and trailing slashes.
2017-10-23 20:40:32 +09:00
Olaf Meeuwissen
62eef576e0
Derive builder and helper images from devuan/slim
...
This will force package building to get its Build-Depends: correct as
the slim variant will not install recommended packages. It also makes
for smaller packages.
2017-10-22 18:06:14 +09:00
Olaf Meeuwissen
5e70ba3b52
Tie build timestamp to the suite
...
This is in preparation for #3 where a single timestamp for multiple
suites does not scale.
2017-10-22 18:04:04 +09:00
Olaf Meeuwissen
b8a2710d37
Align migration image naming with the documentation
...
This also prevents a proliferation of `devuan/debian-jessie-YYYYMMDD`
registries.
2017-10-22 17:55:13 +09:00
Olaf Meeuwissen
541a3965d5
Add base image file system tarball back to Docker build context
...
Fixes build error introduced in 911e2fbc which minimized a wee bit too
aggressively 😒
2017-10-22 17:27:55 +09:00
Olaf Meeuwissen
f4d9f5430a
Use release code names thoughout and exclusively. Fixes #8
2017-10-22 17:15:02 +09:00
Olaf Meeuwissen
7a3f4b0d3a
Use newer Debian image as migration start point
...
This should keep the migrated result smaller as fewer packages will
be upgraded during the migration.
2017-10-22 17:14:49 +09:00
Olaf Meeuwissen
911e2fbcb5
Keep Docker build contexts to an absolute minimum
2017-10-22 17:01:10 +09:00
Olaf Meeuwissen
14c2a93baf
Allow for non-existent directories when pruning documentation
...
Fixes build error.
2017-10-22 16:26:50 +09:00
Olaf Meeuwissen
bd3d1395cc
Ignore interim build results
2017-10-22 16:05:44 +09:00
Olaf Meeuwissen
f0643a5fb8
Add a "slim" variant. Fixes #2
2017-10-22 16:05:44 +09:00
Olaf Meeuwissen
e0e4d09ed4
Get in the habit of cleaning up after `apt-get` invocations
2017-10-22 16:05:44 +09:00
Olaf Meeuwissen
c604f0fbb4
Fix oversight in 813cb4e8
2017-10-14 20:41:47 +09:00
Olaf Meeuwissen
e721ebc454
Clean up script permissions
...
They are all installed with executable permissions in the root file
system so there is no need to have them on the scripts in that are
kept in the repository.
2017-10-14 20:18:19 +09:00
Olaf Meeuwissen
48da58f6bd
Fix typo
2017-10-14 20:12:24 +09:00
Olaf Meeuwissen
e10eab92c3
Add a "helper" variant image to get started with `d1h` quickly
...
Re #1 .
2017-09-10 21:33:41 +09:00
Olaf Meeuwissen
d7a45d22af
Replace suite name with alias in sources.list
...
This keeps the image at the same major release even in case of later
stable releases.
2017-08-28 20:28:49 +09:00
Olaf Meeuwissen
7c5dee0139
Update the documentation
...
[ci skip]
2017-08-26 22:53:08 +09:00
Olaf Meeuwissen
6bff8d5c38
Fix stable suite test
2017-08-26 22:47:23 +09:00
Olaf Meeuwissen
651ed7d1d5
Work around a documented bug in Devuan jessie's debootstrap
...
See http://bugs.devuan.org//cgi/bugreport.cgi?bug=115
2017-08-26 22:29:11 +09:00
Olaf Meeuwissen
5bec9fec32
Fix oversight in 11e0bd83
2017-08-26 21:40:59 +09:00
Olaf Meeuwissen
11e0bd83d4
Build based on symbolic suite name
...
This allows for tagging on that as well. The alias is gotten from the
/etc/devuan_version file. Only stable is tagged as "latest" so people
get something that ought to work by default.
2017-08-26 21:18:09 +09:00
Olaf Meeuwissen
813cb4e823
Put root file system value in a variable
...
It is passed to bootstrap.sh to allow for defining it in a *single*
location.
2017-08-26 20:58:10 +09:00
Olaf Meeuwissen
852c04930d
Pass suite as a command-line argument for builds and derived images
...
This sets the stage for building multiple suites. Note that migration
from Debian is not expected to work for multiple Devuan suites.
2017-08-19 18:02:33 +09:00
Olaf Meeuwissen
6a1214b6fc
Parameterize build on Devuan suite name
2017-08-19 17:53:59 +09:00
Olaf Meeuwissen
28f6fb574c
Fixup oversight in 08aba0ed
2017-08-19 15:52:01 +09:00
Olaf Meeuwissen
e3741f20dd
Use a more capable tar implementation
...
The GitLab CI build environment provides a BusyBox version.
2017-08-19 15:26:25 +09:00
Olaf Meeuwissen
01d9130021
Use here documents in a consistent manner
2017-08-19 15:09:08 +09:00
Olaf Meeuwissen
492d0851bb
Add a default CMD to the base image
2017-08-19 15:08:04 +09:00
Olaf Meeuwissen
08aba0edee
Fix derived image name to point to project's registry
2017-08-19 14:47:11 +09:00
Olaf Meeuwissen
c3b30f9c13
Refactored CI setup and image naming
2017-08-19 14:27:34 +09:00
Olaf Meeuwissen
a644fe7a94
Silence error during purge of unneeded packages
2017-08-19 14:27:34 +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
489dd2ab2d
Provide a bit of feedback running customization scripts
2017-08-18 22:55:46 +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
a4b4617915
Keep git repository out of the Docker context
...
See also 0c7e997c .
2017-08-18 11:50:27 +09:00
Olaf Meeuwissen
7612f621a3
Install build-essentials non-interactively
2017-08-18 11:47:47 +09:00
Olaf Meeuwissen
d3530e7ea9
Fix permissions to match installed state
2017-08-18 10:54:25 +09:00
Olaf Meeuwissen
6d91ffcfb4
Silence warning if no /etc/apt/sources.list.d/* files exist
2017-08-17 20:32:23 +09:00
Olaf Meeuwissen
ebe82f281e
Remove package index files in all Dockerfiles consistently
2017-08-17 17:19:10 +09:00
Olaf Meeuwissen
5814d5ec82
Fix ownership issues of custom scripts
2017-08-17 17:13:35 +09:00