diff options
| author | Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> | 2019-09-05 14:53:36 +0200 |
|---|---|---|
| committer | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2019-09-09 17:50:20 +0000 |
| commit | 109706aa8b26f6f915e1cadae89de8135c3b68bf (patch) | |
| tree | 94ad3adf0f8a4aeff2adffaa92fda9f2ee2dfcbc | |
| parent | 90892a25bd9aa96d7c070e49b0afbcee9bf5fca7 (diff) | |
| download | kolla-109706aa8b26f6f915e1cadae89de8135c3b68bf.tar.gz kolla-109706aa8b26f6f915e1cadae89de8135c3b68bf.zip | |
base/deb: bump 'system' users limit beyond Kolla ones
Haproxy complains that user 'haproxy' already exists during installation
and is not 'system user'. So let bump range for 'system' users to make
it happier.
Our images do not have normal users so it should not affect.
Change-Id: Ia073774c8053111652847a39d80665fd9d3e5dcf
| -rw-r--r-- | docker/base/Dockerfile.j2 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2 index 8f2ec8634..c366d785f 100644 --- a/docker/base/Dockerfile.j2 +++ b/docker/base/Dockerfile.j2 @@ -285,7 +285,10 @@ RUN if [ $(awk -F '=' '/DISTRIB_RELEASE/{print $2}' /etc/lsb-release) != "{{ sup echo "Only release '{{ supported_distro_release }}' is supported on {{ base_distro }}"; false; fi # Customize PS1 bash shell -RUN cat /tmp/kolla_bashrc >> /etc/bash.bashrc +# enlarge 'system users' range so 'haproxy' package will not complain +# see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939470 +RUN cat /tmp/kolla_bashrc >> /etc/bash.bashrc \ + && sed -i -e s/LAST_SYSTEM_UID=999/LAST_SYSTEM_UID=59999/g /etc/adduser.conf # This will prevent questions from being asked during the install ENV DEBIAN_FRONTEND noninteractive |
