mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
Backports #222244 20.04 is at end of standard support; https://ubuntu.com/about/release-cycle
This commit is contained in:
parent
9403c3b695
commit
f95a8cfc4a
2 changed files with 4 additions and 2 deletions
|
@ -38,7 +38,7 @@ export async function runDockerGenerator(
|
|||
}
|
||||
) {
|
||||
let baseOSImage = '';
|
||||
if (flags.ubuntu) baseOSImage = 'ubuntu:20.04';
|
||||
if (flags.ubuntu) baseOSImage = 'ubuntu:24.04';
|
||||
if (flags.ubi) baseOSImage = 'redhat/ubi9-minimal:latest';
|
||||
|
||||
let imageFlavor = '';
|
||||
|
|
|
@ -134,8 +134,10 @@ RUN chmod g+ws /usr/share/kibana && \
|
|||
# Remove the suid bit everywhere to mitigate "Stack Clash"
|
||||
RUN find / -xdev -perm -4000 -exec chmod u-s {} +
|
||||
|
||||
{{! Ubuntu 24 containers include ubuntu:1000:1000 as part of a non-root standardization effort }}
|
||||
{{! Remove ubuntu to maintain the expected kibana user definition }}
|
||||
# Provide a non-root user to run the process.
|
||||
RUN groupadd --gid 1000 kibana && \
|
||||
RUN {{#ubuntu}}userdel -r ubuntu && {{/ubuntu}}groupadd --gid 1000 kibana && \
|
||||
useradd --uid 1000 --gid 1000 -G 0 \
|
||||
--home-dir /usr/share/kibana --no-create-home \
|
||||
kibana
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue