forked from k8ssandra/cass-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogger.Dockerfile
More file actions
25 lines (20 loc) · 804 Bytes
/
logger.Dockerfile
File metadata and controls
25 lines (20 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM redhat/ubi8-micro:latest
ARG VERSION
LABEL maintainer="DataStax, Inc <info@datastax.com>"
LABEL name="system-logger"
LABEL vendor="DataStax, Inc"
LABEL release="${VERSION}"
LABEL version="${VERSION}"
LABEL summary="Sidecar for DataStax Kubernetes Operator for Apache Cassandra "
LABEL description="Sidecar to output Cassandra system logs to stdout"
# Add Tini
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /sbin/tini
ADD https://raw.githubusercontent.com/krallin/tini/master/LICENSE /licenses/LICENSE
RUN chmod +x /sbin/tini
COPY ./LICENSE.txt /licenses/
# Non-root user, cassandra as default
USER cassandra:cassandra
ENTRYPOINT ["/sbin/tini", "--"]
# Run your program under Tini
CMD ["tail", "-n+1", "-F", "/var/log/cassandra/system.log"]