-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add systemd service unit closes #11
- Loading branch information
Showing
2 changed files
with
13 additions
and
3 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,6 +1,6 @@ | ||
FROM docker.io/library/golang:1.20.12-alpine3.19 as builder | ||
|
||
ENV GOREVOKE_TAG=v1.0.0-rc.5 | ||
ENV GOREVOKE_TAG=v1.0.0-rc.6 | ||
WORKDIR /go/src/ | ||
|
||
RUN apk add --no-cache -U git \ | ||
|
@@ -12,8 +12,10 @@ FROM registry.access.redhat.com/ubi9/ubi:9.3-1476 as runner | |
LABEL maintainer="Tony Cavella <[email protected]>" | ||
|
||
COPY --from=builder /usr/local/bin/gorevoke/ /usr/local/bin/gorevoke/ | ||
COPY ./gorevoke.service /etc/systemd/system/ | ||
|
||
RUN dnf update -y | ||
RUN dnf update -y \ | ||
&& systemctl enable gorevoke.service | ||
|
||
EXPOSE 4000 | ||
CMD [ "/usr/local/bin/gorevoke/gorevoke" ] | ||
CMD [ "/sbin/init" ] |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[Unit] | ||
Description=GoRevoke systemd service unit file. | ||
|
||
[Service] | ||
ExecStart=/usr/local/bin/gorevoke/gorevoke | ||
|
||
[Install] | ||
WantedBy=multi-user.target |