Dockerised version of Google's mtail
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Dockerfile 462B

1234567891011121314151617
  1. FROM golang:alpine AS build
  2. WORKDIR /usr/local/go/src/github.com/google/mtail
  3. RUN apk add build-base git \
  4. && git clone https://github.com/google/mtail . \
  5. && make install_deps \
  6. && CGO_ENABLED=0 GOOS=linux go build -o /usr/bin/mtail -a -ldflags '-extldflags "-static"' ./cmd/mtail \
  7. && mkdir /tmp/empty
  8. FROM scratch
  9. COPY --from=build /usr/bin/mtail /mtail
  10. COPY --from=build /tmp/empty /tmp
  11. EXPOSE 3903
  12. ENTRYPOINT ["/mtail", "-logtostderr"]