-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 368-feat-add-a-test-connection-for-notifiers
- Loading branch information
Showing
37 changed files
with
2,947 additions
and
1,991 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
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,4 +1,4 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
|
||
# go-revive | ||
go install github.com/mgechev/revive@latest | ||
|
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,51 +1,53 @@ | ||
######## | ||
# BASE # | ||
######## | ||
ARG DEBIAN_VERSION="bullseye" | ||
ARG DEBIAN_VERSION="bookworm" | ||
ARG GO_VERSION="1.22" | ||
FROM golang:${GO_VERSION}-${DEBIAN_VERSION} | ||
ARG NODE_VERSION="20" | ||
FROM golang:${GO_VERSION}-${DEBIAN_VERSION} as go_builder | ||
FROM node:${NODE_VERSION}-${DEBIAN_VERSION} AS base | ||
|
||
COPY --from=go_builder /usr/local/go/ /usr/local/go/ | ||
ENV PATH="/usr/local/go/bin:${PATH}" | ||
RUN npm install -g npm@latest | ||
|
||
COPY . /build/ | ||
WORKDIR /build/ | ||
|
||
ARG BUILD_VERSION="development" | ||
RUN make BUILD_VERSION=${BUILD_VERSION} go-build | ||
RUN chmod 755 /build/argus | ||
|
||
WORKDIR /build/_healthcheck/ | ||
RUN go build -o ../healthcheck | ||
RUN chmod 755 /build/healthcheck | ||
|
||
|
||
######### | ||
# ARGUS # | ||
######### | ||
ARG DEBIAN_VERSION="bullseye" | ||
FROM debian:${DEBIAN_VERSION}-slim | ||
FROM alpine:latest | ||
LABEL maintainer="The Argus Authors <[email protected]>" | ||
RUN \ | ||
apt update && \ | ||
apt install ca-certificates -y && \ | ||
apt autoremove -y && \ | ||
apt clean && \ | ||
rm -rf \ | ||
/tmp/* \ | ||
/usr/share/doc/* \ | ||
/var/cache/* \ | ||
/var/lib/apt/lists/* \ | ||
/var/tmp/* | ||
apk update && \ | ||
apk add --no-cache \ | ||
ca-certificates \ | ||
musl-dev \ | ||
su-exec && \ | ||
rm -rf \ | ||
/tmp/* \ | ||
/var/cache/* | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
COPY --from=0 /build/argus /usr/bin/argus | ||
COPY --from=0 /build/healthcheck /healthcheck | ||
COPY --from=0 /build/config.yml.example /app/config.yml | ||
COPY --from=0 /build/LICENSE /LICENSE | ||
COPY --from=base /build/argus /usr/bin/argus | ||
COPY --from=base /build/healthcheck /healthcheck | ||
COPY --from=base /build/config.yml.example /app/config.yml | ||
COPY --from=base /build/LICENSE /LICENSE | ||
|
||
RUN \ | ||
useradd -u 911 -U -d /app -s /bin/false argus && \ | ||
mkdir -p \ | ||
/app \ | ||
/app/data | ||
addgroup -g 911 -S argus && \ | ||
adduser -u 911 -S -D -h /app -s /bin/false argus -G argus && \ | ||
mkdir -p \ | ||
/app \ | ||
/app/data && \ | ||
chown -R argus:argus /app | ||
WORKDIR /app | ||
|
||
EXPOSE 8080 | ||
|
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
Oops, something went wrong.