From d126548d37b139e31c32540afb17f27d42a0133d Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Wed, 10 Apr 2024 17:28:47 +0200 Subject: [PATCH] Rename `icinga-notifications-daemon` -> `icinga-notifications` --- Dockerfile | 6 +++--- README.md | 2 +- .../main.go | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename cmd/{icinga-notifications-daemon => icinga-notifications}/main.go (100%) diff --git a/Dockerfile b/Dockerfile index aad64d28..c04d8807 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ WORKDIR /src/icinga-notifications RUN mkdir bin RUN --mount=type=cache,target=/go/pkg/mod \ --mount=type=cache,target=/root/.cache/go-build \ - go build -o bin/ ./cmd/icinga-notifications-daemon + go build -o bin/ ./cmd/icinga-notifications RUN mkdir bin/channel RUN --mount=type=cache,target=/go/pkg/mod \ @@ -17,7 +17,7 @@ RUN --mount=type=cache,target=/go/pkg/mod \ FROM docker.io/library/alpine -COPY --from=build /src/icinga-notifications/bin/icinga-notifications-daemon /usr/bin/icinga-notifications-daemon +COPY --from=build /src/icinga-notifications/bin/icinga-notifications /usr/bin/icinga-notifications COPY --from=build /src/icinga-notifications/bin/channel /usr/libexec/icinga-notifications/channel RUN apk add tzdata @@ -28,4 +28,4 @@ RUN adduser -u 1000 -H -D -G $username $username USER $username EXPOSE 5680 -CMD ["/usr/bin/icinga-notifications-daemon", "--config", "/etc/icinga-notifications/config.yml"] +CMD ["/usr/bin/icinga-notifications", "--config", "/etc/icinga-notifications/config.yml"] diff --git a/README.md b/README.md index d07c5cac..97ea8bc6 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ VALUES Then, you can launch the daemon with the following command. ```go -go run ./cmd/icinga-notifications-daemon --config config.yml +go run ./cmd/icinga-notifications --config config.yml ``` ## License diff --git a/cmd/icinga-notifications-daemon/main.go b/cmd/icinga-notifications/main.go similarity index 100% rename from cmd/icinga-notifications-daemon/main.go rename to cmd/icinga-notifications/main.go