Skip to content

Commit bc9a1db

Browse files
authored
Merge pull request #816 from influxdata/chore/chronograf-cleanup-su
chore: remove su-exec from chronograf
2 parents 7d91884 + fce74eb commit bc9a1db

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

chronograf/1.10/alpine/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM alpine:3.20
1+
FROM alpine:3.22
22

33
RUN echo 'hosts: files dns' >> /etc/nsswitch.conf
4-
RUN apk add --no-cache ca-certificates su-exec && \
4+
RUN apk add --no-cache ca-certificates setpriv && \
55
update-ca-certificates
66

7-
ENV CHRONOGRAF_VERSION 1.10.7
7+
ENV CHRONOGRAF_VERSION=1.10.7
88

99
RUN set -ex && \
1010
mkdir ~/.gnupg; \

chronograf/1.10/alpine/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ fi
1212
if [ "$(id -u)" -ne 0 ] || [ "${CHRONOGRAF_AS_ROOT}" = "true" ]; then
1313
exec "$@"
1414
else
15-
exec su-exec chronograf "$@"
15+
exec setpriv --reuid chronograf --regid chronograf --init-groups "$@"
1616
fi

0 commit comments

Comments
 (0)