mirror of
https://github.com/luzifer-docker/vault-es-audit.git
synced 2024-11-09 13:20:01 +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
|
FROM golang:alpine
|
||||||
|
|
||||||
ENV FILEBEAT_VERSION=v6.1.1
|
ENV FILEBEAT_VERSION=v7.11.1
|
||||||
|
|
||||||
RUN set -ex \
|
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 \
|
&& mkdir -p /go/src/github.com/elastic \
|
||||||
&& git clone https://github.com/elastic/beats.git /go/src/github.com/elastic/beats \
|
&& git clone -b ${FILEBEAT_VERSION} \
|
||||||
&& git -C /go/src/github.com/elastic/beats fetch origin --tags \
|
https://github.com/elastic/beats.git \
|
||||||
&& git -C /go/src/github.com/elastic/beats reset --hard ${FILEBEAT_VERSION} \
|
/go/src/github.com/elastic/beats \
|
||||||
&& go install -v github.com/elastic/beats/filebeat
|
&& cd /go/src/github.com/elastic/beats/filebeat \
|
||||||
|
&& go install -mod=readonly
|
||||||
|
|
||||||
|
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
Loading…
Reference in a new issue