-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* removes coreos systemd-go use * updates release.yml
- Loading branch information
1 parent
f3dab41
commit fd163c4
Showing
17 changed files
with
116 additions
and
778 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
FROM registry.fedoraproject.org/fedora-minimal:38 AS builder | ||
|
||
RUN microdnf install -y systemd-devel golang git && microdnf clean all | ||
FROM golang:1.20 as builder | ||
|
||
WORKDIR /go/src/audito-maldito | ||
|
||
# pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change | ||
COPY go.mod go.sum ./ | ||
RUN go mod download && go mod verify | ||
|
||
COPY . . | ||
COPY cmd ./cmd | ||
COPY ingesters ./ingesters | ||
COPY internal ./internal | ||
COPY processors ./processors | ||
COPY main.go . | ||
|
||
RUN go build -o audito-maldito | ||
|
||
# Not using distroless nor scratch because we need the systemd shared libraries | ||
FROM registry.fedoraproject.org/fedora-minimal:38 | ||
|
||
FROM ubuntu:22.04 | ||
# NOTE(jaosorior): Yes, we need to be the root user for this case. | ||
# We need access to the journal's privileged log entries and the audit log in the future. | ||
USER 0 | ||
|
||
COPY --from=builder /go/src/audito-maldito/audito-maldito /usr/bin/audito-maldito | ||
|
||
ENTRYPOINT [ "/usr/bin/audito-maldito" ] | ||
ENTRYPOINT [ "/usr/bin/audito-maldito" ] |
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
Oops, something went wrong.