Skip to content

Commit

Permalink
Run cassandra schema job as a non-root user by default (#3043)
Browse files Browse the repository at this point in the history
Signed-off-by: chgl <[email protected]>
  • Loading branch information
chgl authored Jun 4, 2021
1 parent 394ec23 commit 2687983
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugin/storage/cassandra/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ FROM cassandra:3.11
COPY schema/* /cassandra-schema/

ENV CQLSH_HOST=cassandra

RUN groupadd -g 65532 nonroot && \
useradd -u 65532 -g nonroot nonroot --create-home

USER 65532:65532
ENTRYPOINT ["/cassandra-schema/docker.sh"]

0 comments on commit 2687983

Please sign in to comment.