Commit Graph

12 Commits

Author SHA1 Message Date
Alessandro Chitolina 3e8a70710a fix jessie builds and repo digest fetch command 2021-02-11 15:00:59 +01:00
James Westby dc6a22375b Fix reproducible builds by fixing date in /etc/shadow
The builds were reproducible provided they were done on the same day.

However if they were done on different days they had different dates
in /etc/shadow and so changed. This meant that the images were
updated every day, and sometimes the reproducibility check would
fail if the day ticked over between the builds.
2019-09-30 12:29:49 +02:00
Filippo Giunchedi 2c4b4f0f14 Add Buster
Tweak the tests so that they use default-mysql-server
on newer dists as it replaced the mysql-server package.

Also add explicit import of the buster signing key
as the Travis agent doesn't have it available.

Thanks to Filippo Giunchedi (@filippog) for the initial
work on this.
2019-07-11 16:11:35 +02:00
tompizmor f2eb426c2e Increase test timeout 2018-04-20 16:28:51 +02:00
James Westby 0f008379a9 Increase the timeout on the fail test
It seems like the build has been failing frequently
recently, apparently timing out during this test.

Increase the timeout to compensate.
2018-02-28 18:32:50 +00:00
James Westby 5e09a4cbc4 Install bsd utils to get logger
This is needed to install the mysql-server package. Fixes #16.
2017-02-27 17:08:09 +00:00
James Westby 3916090dd0 Install ncurses-base to get terminfo files.
It's an essential package designed for exactly this.
It's pretty small, so not a huge cost to putting it back in.

The problem is pervasive enough, and it's unlikely that
users will know how to fix it, that it's worth us solving
it in the base image.
2017-02-23 15:26:42 +00:00
James Westby daeaab7326 Fix the loop to be POSIX-compatible. (#10)
We were using a bashism in install_packages, but it was
a `/bin/sh` script. This meant there was a syntax error, but
it didn't kill the script so it would loop forever.

Add a test for the install_packages loop by installing something
that doesn't exist. This will trigger the loop, and should hit
the maximum loop count and error out. If it doesn't then the timeout
command will kill it and the test will fail. Using a timeout
isn't ideal, but better than looping forever.

Also clean up the test script a little bit and print a description
of each test before running it.
2016-12-07 09:42:50 +00:00
James Westby 47e1cb91ef Add some more commonly expected packages.
sysv-rc and util-linux are used in the postinst scripts
of some packages, and so those packages won't install
if they aren't available.

sysv-rc contains update-rc.d, so any package that installs
a service would fail to install. Those packages are common
to install in to containers.

util-linux contains the getopt command which some scripts
expect to find.
2016-10-19 12:22:47 +01:00
James Westby 370747c60f Set the sources.list and update from security. 2016-09-08 12:13:51 +01:00
James Westby 2e2ab24571 Run the second stage with bash. 2016-09-08 11:00:08 +01:00
James Westby 2916ff94f4 First go at minideb. 2016-09-02 14:48:09 +01:00