Skip to content

Commit 98c1460

Browse files
authored
Merge pull request #814 from influxdata/kapacitor
chore: Replace su-exec with setpriv for Kapacitor alpine
2 parents 45b1761 + 35796e5 commit 98c1460

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

kapacitor/1.8/alpine/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

77
ENV KAPACITOR_VERSION 1.8.0

kapacitor/1.8/alpine/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ export KAPACITOR_HOSTNAME
1111
if [ "$(id -u)" -ne 0 ] || [ "${KAPACITOR_AS_ROOT}" = "true" ]; then
1212
exec "$@"
1313
else
14-
exec su-exec kapacitor "$@"
14+
exec setpriv --reuid kapacitor --regid kapacitor --init-groups "$@"
1515
fi

0 commit comments

Comments
 (0)