-
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.
feat(docker): add dockerfile for goreleaser
- Loading branch information
1 parent
dc9533f
commit 9f67976
Showing
10 changed files
with
59 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
go = "latest" | ||
"ubi:go-task/task" = "latest" | ||
"npm:gql-sdl" = "latest" | ||
goreleaser = "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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM docker.io/alpine:3 | ||
ENV READFLOW_DOCKER="1" | ||
ENV SOURCE="database" | ||
ENV COLUMN_CHAPTER="false" | ||
ENV TARGETS="anilist,hardcover" | ||
|
||
ENV DATABASE_CALIBRE="/data/metadata.db" | ||
ENV DATABASE_CALIBREWEB="/data/app.db" | ||
ENV CRON_SCHEDULE="@hourly" | ||
|
||
COPY packaging/entrypoint.sh / | ||
RUN chmod +x /entrypoint.sh && \ | ||
apk add --no-cache supercronic | ||
COPY readflow /bin | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
CMD ["supercronic", "-no-reap", "/tmp/crontab"] |
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
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,15 @@ | ||
#!/usr/bin/env sh | ||
|
||
set -e | ||
|
||
cronjob="$CRON_SCHEDULE /bin/readflow sync" | ||
echo "$cronjob" > /tmp/crontab | ||
chmod 644 /tmp/crontab | ||
|
||
# first arg is `-f` or `--some-option` | ||
if [ "${1#-}" != "$1" ] || [ "$1" == "sync" ]; then | ||
set -- /bin/readflow "$@" | ||
fi | ||
|
||
exec "$@" | ||
|