Skip to content

Commit

Permalink
Build system-logger:latest with v1.16.0 file
Browse files Browse the repository at this point in the history
  • Loading branch information
burmanm committed Jul 26, 2023
1 parent 672ecf6 commit 5ddb840
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions logger.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ ARG VERSION
ARG TARGETPLATFORM

# Install Vector
ENV VECTOR_VERSION 0.31.0
ENV VECTOR_VERSION 0.29.1
RUN case ${TARGETPLATFORM} in \
"linux/amd64") VECTOR_ARCH=x86_64 ;; \
"linux/arm64") VECTOR_ARCH=aarch64 ;; \
esac \
&& rpm -i https://packages.timber.io/vector/${VECTOR_VERSION}/vector-${VECTOR_VERSION}-1.${VECTOR_ARCH}.rpm

RUN mkdir -p /var/lib/vector

FROM redhat/ubi8-micro:latest

ARG VERSION
Expand All @@ -27,12 +29,11 @@ LABEL description="Sidecar to output Cassandra system logs to stdout"
COPY ./config/logger/vector_config.toml /etc/vector/vector.toml
COPY --from=builder /usr/lib64/libstdc++.so.6 /usr/lib64/libstdc++.so.6
COPY --from=builder /usr/bin/vector /usr/bin/vector
#COPY --from=builder --chown=cassandra:root --chmod=775 /var/lib/vector /var/lib/vector
COPY --from=builder --chown=999:999 /var/lib/vector /var/lib/vector

#RUN chmod g+rw /var/lib/vector
ADD https://raw.githubusercontent.com/vectordotdev/vector/master/LICENSE /licences/LICENSE
COPY ./LICENSE.txt /licenses/

# Non-root user, cassandra as default
USER cassandra
USER cassandra:cassandra
ENTRYPOINT ["/usr/bin/vector"]

0 comments on commit 5ddb840

Please sign in to comment.