Commit Graph

14 Commits

Author SHA1 Message Date
Alexey Neyman
5411e69b91 Update the docker containers
To avoid proliferation of versions, I suggest the following policy: the
oldest LTS release still receiving maintenance updates + the most recent
release for distributions that offer LTS releases.

For CentOS, this means CentOS7 and CentOS Stream 9 (since CentOS are all
"long-term support", this is just the oldest and the newest among
currently supported).

For Ubuntu, this means Ubuntu 18.04 (previous LTS are in "security fixes
only" mode) and Ubuntu 21.10. Recent Ubuntu attempts to be interactive
during the configuration of tzdata, required some additional setup.

In the common installation script, the logic for handling a
configured/built local directory breaks if `gmake` is detected as the
make binary; `make distclean` then fails inside the container because
not all systems have `gmake` symlink. Remove that attempt of a
workaround completely, just require that the host directory is clean.

Signed-off-by: Alexey Neyman <stilor@att.net>
2022-02-11 00:47:51 -08:00
Chris Packham
fde8e92d4d testing: docker: Use archlinux:latest instead of archlinux/base:latest
The name of the docker images have changed on docker hub. Update the
name used to point to the official archlinux image.

Fixes #1522

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-06-08 20:59:58 +12:00
Chris Packham
30c3a44b4b Add rsync dependency
Recent Linux kernels (5.3 and newer) use rsync to copy headers around.
Add the rsync package to the list of dependencies.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2020-06-09 20:58:21 +12:00
Chris Packham
612d374fbe testing/docker: set default value for CTNG_UID/CTNG_GID
Make the creation of docker images easier so that CTNG_UID/CTNG_GID have
a default value if it's not explicitly specified when building. This
will allow publishing of images on various package repositories (e.g.
docker hub, gitlab containers). dmgr.sh can still be used to set the
UID/GID to that of the current user when building a custom container.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2020-02-17 20:07:20 +13:00
Alexey Neyman
a0fdc36be6 Seems like ArchLinux renamed its base on dockerhub
... awhile ago; I had it cached on one machine.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-28 09:24:57 -08:00
Alexey Neyman
27423505bf Archlinux: update keyring before packages
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-28 09:01:07 -08:00
Alexey Neyman
b6c5ae2f17 Fix building archlinux image
`groupadd` now requires libaudit.so, but coreutils can be installed
without audit package. Weird, gross.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-01-14 23:58:53 -08:00
Alexey Neyman
9d43246664 Change the layout a bit
... to a more natural installation paths, and also include ct-ng into
$PATH in the containers.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-10-28 10:44:22 -07:00
Alexey Neyman
21c0ab272a Add the workaround for kconfig colors in archlinux
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-10-09 00:03:10 -07:00
Alexey Neyman
5c10c92ed4 Add wget
... so that Docker image creation can fetch dumb-init.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-10-06 08:44:39 -07:00
Alexey Neyman
9d7c783a93 Make dockerfiles a bit more consistent
... and add Mint 19 and CentOS 6. The latter currently fails in
ctng's configure due to an old libtool; need to make libtool
optional.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-09-28 11:53:55 -07:00
Alexey Neyman
d573c15758 Use 'chmod a-x' instead of 'chmod -x'
There is a subtle difference when executable bit is a part of the umask.
And at least some versions (Debian/stretch) fail if the resulting mode
would've been different if not for the umask setting.

Fixes #998.

Although, with such chmods/umasks it is likely that some package installation
will break anyway. But I'll leave it until somebody complains.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-09-26 23:54:55 -07:00
Alexey Neyman
b04bd52270 Add unzip to ArchLinux docker image
Needed by android sample.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-29 23:02:27 -07:00
Alexey Neyman
715d6376bf First stab at docker-based test framework
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-15 14:29:09 -07:00