mirror of
https://github.com/luzifer-docker/vault-es-audit.git
synced 2024-12-20 15:11:17 +00:00
Fix build for Go1.16, update filebeat
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
74daa8feb9
commit
0edfc52522
1 changed files with 10 additions and 6 deletions
16
Dockerfile
16
Dockerfile
|
@ -1,14 +1,18 @@
|
|||
FROM golang:alpine
|
||||
|
||||
ENV FILEBEAT_VERSION=v6.1.1
|
||||
ENV FILEBEAT_VERSION=v7.11.1
|
||||
|
||||
RUN set -ex \
|
||||
&& apk --no-cache add build-base git ca-certificates \
|
||||
&& apk --no-cache add \
|
||||
build-base \
|
||||
git \
|
||||
ca-certificates \
|
||||
&& mkdir -p /go/src/github.com/elastic \
|
||||
&& git clone https://github.com/elastic/beats.git /go/src/github.com/elastic/beats \
|
||||
&& git -C /go/src/github.com/elastic/beats fetch origin --tags \
|
||||
&& git -C /go/src/github.com/elastic/beats reset --hard ${FILEBEAT_VERSION} \
|
||||
&& go install -v github.com/elastic/beats/filebeat
|
||||
&& git clone -b ${FILEBEAT_VERSION} \
|
||||
https://github.com/elastic/beats.git \
|
||||
/go/src/github.com/elastic/beats \
|
||||
&& cd /go/src/github.com/elastic/beats/filebeat \
|
||||
&& go install -mod=readonly
|
||||
|
||||
|
||||
FROM alpine
|
||||
|
|
Loading…
Reference in a new issue