-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #523 from Security-Onion-Solutions/fix/strelka_image
Strelka - 0.24.01.18
- Loading branch information
Showing
4 changed files
with
85 additions
and
61 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,15 +1,24 @@ | ||
FROM ghcr.io/security-onion-solutions/golang AS build | ||
FROM ghcr.io/security-onion-solutions/golang:1.21.5-alpine AS build | ||
LABEL maintainer "Security Onion Solutions, LLC" | ||
ARG STRELKA_RELEASE_VERSION=0.23.05.22 | ||
ARG STRELKA_RELEASE_VERSION=0.24.01.18 | ||
|
||
RUN CGO_ENABLED=0 go install github.com/target/strelka/src/go/cmd/strelka-frontend@$STRELKA_RELEASE_VERSION | ||
RUN apk add openssl-dev \ | ||
bash \ | ||
build-base \ | ||
pkgconfig \ | ||
librdkafka \ | ||
librdkafka-dev && \ | ||
CGO_ENABLED=1 go install -tags musl github.com/target/strelka/src/go/cmd/strelka-frontend@$STRELKA_RELEASE_VERSION | ||
|
||
FROM ghcr.io/security-onion-solutions/alpine | ||
|
||
COPY --from=build /go/bin/strelka-frontend /usr/local/bin/ | ||
|
||
RUN addgroup -g 939 strelka && \ | ||
adduser -u 939 -G strelka strelka --disabled-password \ | ||
-h /etc/strelka --no-create-home strelka && \ | ||
mkdir /var/log/strelka/ && \ | ||
touch /var/log/strelka/strelka.log && \ | ||
chown -R 939:939 /var/log/strelka/ | ||
USER strelka | ||
|
||
USER strelka |
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