-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add image metadata, allow flags to be overridden, and tzdata (#12)
That last one was a major omission and would cause the daemon to hang when run in a container.
- Loading branch information
Showing
3 changed files
with
33 additions
and
1 deletion.
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,4 +1,16 @@ | ||
FROM alpine:latest | ||
|
||
LABEL org.opencontainers.image.title=NXTP | ||
LABEL org.opencontainers.image.description="An NXTP client and server" | ||
LABEL org.opencontainers.image.vendor="Keith Gaughan" | ||
LABEL org.opencontainers.image.licenses=MIT | ||
LABEL org.opencontainers.image.url=https://github.com/kgaughan/nxtp | ||
LABEL org.opencontainers.image.source=https://github.com/kgaughan/nxtp | ||
LABEL org.opencontainers.image.documentation=https://kgaughan.github.io/nxtp/ | ||
|
||
RUN apk --no-cache add tzdata | ||
COPY nxtp . | ||
USER nobody | ||
EXPOSE 12300 | ||
ENTRYPOINT ["/nxtp", "-endpoint", ":12300"] | ||
ENTRYPOINT ["/nxtp"] | ||
CMD ["-endpoint", "0.0.0.0:12300"] |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Description = Network neXt Time Protocol (NXTP) server | ||
After = network.target | ||
|
||
[Service] | ||
Type = simple | ||
ExecStart = /usr/bin/nxtp | ||
KillMode = process | ||
RestartSec = 5s | ||
Restart = on-failure | ||
|
||
# vi:set ft=dosini: |