Skip to content

Commit 6b9f76a

Browse files
committed
chore: Replace su-exec with setpriv for Kapacitor alpine
1 parent 45b1761 commit 6b9f76a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kapacitor/1.8/alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM alpine:3.20
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 && \
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)