256 Commits

Author SHA1 Message Date
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
Sameer Naik ac57829719 travis: process build on a xenial vm, fixes debian:unstable builds (#39) 2017-12-21 21:18:51 +05:30
James Westby 7df2db746c Fix arguments to gcloud docker
gcloud became more strict about separating gcloud arguments
from docker arguments, and is now throwing an error failing
the build https://travis-ci.org/bitnami/minideb/jobs/246281633#L5140

Use `--` to separate the arguments.
2017-06-26 11:18:16 +01:00
James Westby fad19490cb Add stretch and make it default
Stretch was just released: https://www.debian.org/News/2017/20170617

Closes #32
2017-06-19 08:23:41 +01:00
Tuna 79752bbb14 Merge pull request #27 from ngtuna/Readme
update readme
2017-06-03 14:45:49 +07:00
Tuna 91d732ce23 fix typo on README 2017-06-03 14:36:54 +07:00
Tuna 3767e80b62 add make to build section 2017-06-01 16:44:48 +07:00
Tuna 3e1dfb4d7d update readme 2017-06-01 16:44:48 +07:00
Tuna b47a442c97 update readme 2017-06-01 16:44:47 +07:00
Tuna b23aee5fe2 Merge pull request #30 from ngtuna/Makefile
add Makefile
2017-06-01 16:42:09 +07:00
Tuna d655c817b4 update Makefile
- add stamp file
- add pattern target
2017-06-01 16:33:37 +07:00
Tuna f4ad93a8cd add Makefile 2017-05-31 15:30:24 +07:00
Tuna 368d0e47b4 add LICENSE (#28) 2017-05-30 11:39:51 +00:00
Adnan Abdulhussein 7cae900695 Merge pull request #26 from ngtuna/badges
add travis, slack badges
2017-05-25 09:28:18 +01:00
Tuna f837bc1eb2 add travis, slack badges 2017-05-25 13:02:40 +07:00
Sameer Naik 812bab633b Merge branch 'fix-quay-login' 2017-05-23 16:21:33 +05:30
Sameer Naik d164a63885 fixes quay.io login 2017-05-23 16:20:37 +05:30
Sameer Naik 30a380bc0c Merge branch 'docker_login' 2017-05-23 16:02:23 +05:30
Sameer Naik 14f98b939c remove -e argument from docker login 2017-05-23 16:01:56 +05:30
Sameer Naik 6152766c32 Merge branch 'mirror-quayio' 2017-05-23 15:45:12 +05:30
Sameer Naik 9a0d628cca push minideb image builds to quay.io/bitnami/minideb 2017-05-23 15:25:50 +05:30
Simon Bennett 7b392e9987 Mention other images that use this as a base
Mention some other container images that use minideb so people know they don't have to reinvent the wheel if they don't want to.
2017-04-20 11:02:00 -07: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 44030c910b Make the image build reproducible
Change the mkimage script so that the produced image is
reproducible. This involves:

   - removing the ldconfig aux-cache as it changes on every build.
   - set the mtimes of the files to a specific date so that the
     resulting tar file will have the same contents.
   - The `strings` guard around the unsafe-io tweak seems to be
     non-deterministic. It was sometimes not adding the tweak
     for the same file. Remove it as we don't care about older
     than jessie.
   - Importing the image by constructing a docker image with
     a specific timestamp and doing `docker load`.

Also change the buildall script to build each image twice and
confirm that the same tarball is produced, and that results
in the layers in the imported images matching.

Add a dockerdiff script that checks that two images are equivalent,
and tries to show the differences if not. This is useful when the
build script reports differences, as it can point to what the
differences are.
2017-02-10 11:48:28 +00:00
James Westby 6befeedf99 Refactor pushall to use a single loop 2017-02-10 11:48:28 +00:00
James Westby 513929ecd6 Build on trusty
This gives us more recent versions of the tools we use.
2017-02-10 11:48:28 +00:00
James Westby 1a5519d4f1 Stop building wheezy.
We don't use it, and there won't be too much interest in it
as jessie has been out for a while.
2017-02-02 09:29:03 +01:00
Sameer Naik bc461c2539 Merge pull request #11 from solidnerd/patch-1
Fix docker repository source of minideb
2016-12-27 20:27:17 +05:30
Niclas Mietz fd3168d234 Fix docker repository source of minideb 2016-12-27 14:23:58 +01: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 590b58eb70 Fix the typo in install_packages. (#9) 2016-12-01 17:21:14 +00:00
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