Commit Graph

24 Commits

Author SHA1 Message Date
James Westby a09917a0ce Retry apt if it fails in install_packages. (#8)
Sometimes apt will fail due a transient network issue. Often that
will be fixed by retrying.

This is particularly useful as part of an automated build pipeline.
2016-11-30 15:11:33 +00:00
Adnan Abdulhussein dbc4db9441 install_packages: use --no-install-recommends flag by default (#7) 2016-11-25 10:24:19 +00:00
James Westby cfbba1ecc6 Improve the README for consumers. 2016-10-19 12:22:56 +01: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 875e3592f7 Don't delete copyright files.
Some licences require that the binaries be shipped with a copy
of the license. Debian does this in the copyright files in
/usr/share/doc. We need to leave those files there to keep
the image distributable.
2016-10-14 17:00:53 +01:00
James Westby 193afb273d Move the containers to the bitnami namespace. 2016-10-13 18:22:34 +01:00
James Westby a915cb330e Also push images to GCR.
We want to make our images available on GCR as well as dockerhub.

It is using our test account for now while testing Travis integration.
2016-10-12 13:44:18 +01:00
James Westby 44a24cda66 Build wheezy as well.
We build oldstable stacksmith base images as well, so build that
here.

Drop the namibase code as it isn't used.
2016-10-03 17:44:09 +02:00
James Westby 0d233a3c31 Run pushall with bash. 2016-09-09 15:13:50 +01:00
James Westby 0930a29d6f Push to dockerhub on successful builds.
If master builds successfully then push the results
to dockerhub.

We assume that the dockerhub username and password will
be in the environment. This will use travis env vars so
that the secrets aren't available to forks.

The on: branch: master means that other branches wouldn't
push to dockerhub.
2016-09-09 14:56:13 +01:00
James Westby 82ca442105 Don't use --force-yes. 2016-09-08 12:38:14 +01:00
James Westby 13da6c814e Set the correct dist in the sources.list file. 2016-09-08 12:24:29 +01:00
James Westby e5899b1cd2 Stop building namibase. 2016-09-08 12:18:23 +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 e3cff8ae42 Improve the install_packages script. 2016-09-08 10:27:21 +01:00
James Westby af15d6de65 Build with set -x to get debug output. 2016-09-08 10:24:41 +01:00
James Westby a3884552f3 Don't tag until tested. 2016-09-08 10:16:42 +01:00
James Westby f5120b8874 Remove --force-check-gpg as it is not supported on trusty. 2016-09-08 10:16:25 +01:00
James Westby c6c077e966 Add the travis.yml. 2016-09-08 10:10:10 +01:00
James Westby 549a2eb616 Use custom debootstrap scripts.
These allow for us to further customize the packages installed.
2016-09-02 17:32:07 +01:00
James Westby a21737a453 Record a manifest of the packages installed.
Also log the image creation to a file.
2016-09-02 17:31:14 +01:00
James Westby fa1fb7e34b Add some more notes. 2016-09-02 17:06:05 +01:00
James Westby 2916ff94f4 First go at minideb. 2016-09-02 14:48:09 +01:00