-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kafka: refactor kafka to use another library
Signed-off-by: Carlos Panato <[email protected]>
- Loading branch information
Showing
11 changed files
with
59 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
ARG BUILDER_IMAGE=golang:1.15.5-alpine | ||
ARG BUILDER_IMAGE=golang:1.15.5 | ||
ARG BASE_IMAGE=alpine:3.12 | ||
|
||
FROM ${BUILDER_IMAGE} AS build-stage | ||
|
||
RUN apk add --update --no-cache alpine-sdk ca-certificates librdkafka coreutils | ||
ENV CGO_ENABLED=0 | ||
|
||
WORKDIR /src | ||
ADD . . | ||
|
||
RUN go mod download | ||
RUN go build -tags musl -gcflags all=-trimpath=/src -asmflags all=-trimpath=/src -a -installsuffix cgo -o falcosidekick . | ||
RUN make falcosidekick | ||
|
||
# Final Docker image | ||
FROM ${BASE_IMAGE} AS final-stage | ||
LABEL MAINTAINER "Thomas Labarussias <[email protected]>" | ||
|
||
RUN apk add --update --no-cache ca-certificates librdkafka | ||
RUN apk add --update --no-cache ca-certificates | ||
|
||
# Create user falcosidekick | ||
RUN addgroup -S falcosidekick && adduser -u 1234 -S falcosidekick -G falcosidekick | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters