Skip to content

Commit 090ca2c

Browse files
authored
Merge pull request #145 from grepplabs/cap_net_bind_service
Fix #141 - allow proce…
2 parents a5d4503 + 105e873 commit 090ca2c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN mkdir -p build && \
2222
-ldflags "${LDFLAGS}" .
2323

2424
FROM --platform=$BUILDPLATFORM alpine:3.17
25-
RUN apk add --no-cache ca-certificates
25+
RUN apk add --no-cache ca-certificates libcap
2626
RUN adduser \
2727
--disabled-password \
2828
--gecos "" \
@@ -32,6 +32,8 @@ RUN adduser \
3232
kafka-proxy
3333

3434
COPY --from=builder /go/src/github.com/grepplabs/kafka-proxy/build /opt/kafka-proxy/bin
35+
RUN setcap 'cap_net_bind_service=+ep' /opt/kafka-proxy/bin/kafka-proxy
36+
3537
USER kafka-proxy
3638
ENTRYPOINT ["/opt/kafka-proxy/bin/kafka-proxy"]
3739
CMD ["--help"]

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,9 @@ metadata:
451451
name: myapp
452452
spec:
453453
replicas: 1
454+
selector:
455+
matchLabels:
456+
app: myapp
454457
template:
455458
metadata:
456459
labels:

0 commit comments

Comments
 (0)