diff options
author | Alexey Neyman <stilor@att.net> | 2022-02-10 22:43:30 (GMT) |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2022-02-11 08:47:51 (GMT) |
commit | 5411e69b9136702aa3f17572479e8e5f5d3758d6 (patch) | |
tree | ed1b40c4576aed28c777859067e181d958ca2e88 /testing/docker/ubuntu21.10 | |
parent | a4cff7a0612fccb0e32529a10e53a836fa12d634 (diff) |
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>
Diffstat (limited to 'testing/docker/ubuntu21.10')
-rw-r--r-- | testing/docker/ubuntu21.10/Dockerfile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/docker/ubuntu21.10/Dockerfile b/testing/docker/ubuntu21.10/Dockerfile new file mode 100644 index 0000000..883a26d --- /dev/null +++ b/testing/docker/ubuntu21.10/Dockerfile @@ -0,0 +1,20 @@ +FROM ubuntu:21.10 +ARG CTNG_UID=1000 +ARG CTNG_GID=1000 +RUN groupadd -g $CTNG_GID ctng +RUN useradd -d /home/ctng -m -g $CTNG_GID -u $CTNG_UID -s /bin/bash ctng + +# Non-interactive configuration of tzdata +ENV DEBIAN_FRONTEND noninteractive +ENV DEBCONF_NONINTERACTIVE_SEEN true +RUN { echo 'tzdata tzdata/Areas select Etc'; echo 'tzdata tzdata/Zones/Etc select UTC'; } | debconf-set-selections + +RUN apt-get update +RUN apt-get install -y gcc g++ gperf bison flex texinfo help2man make libncurses5-dev \ + python3-dev autoconf automake libtool libtool-bin gawk wget bzip2 xz-utils unzip \ + patch libstdc++6 rsync git +RUN wget -O /sbin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64 +RUN chmod a+x /sbin/dumb-init +RUN echo 'export PATH=/opt/ctng/bin:$PATH' >> /etc/profile +ENTRYPOINT [ "/sbin/dumb-init", "--" ] + |