-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from theohbrothers/enhancement/add-imap-backup…
…-14.4.1-variants Enhancement: Add imap-backup 14.4.1 variants
- Loading branch information
Showing
5 changed files
with
160 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"imap-backup": { | ||
"versions": [ | ||
"14.4.1", | ||
"14.3.0", | ||
"14.2.0", | ||
"14.1.1", | ||
|
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,13 @@ | ||
FROM ruby:3.2-alpine3.17 | ||
|
||
RUN apk add --no-cache ca-certificates | ||
RUN set -eux; \ | ||
gem install imap-backup -v 14.4.1; \ | ||
imap-backup help > /dev/null | ||
|
||
WORKDIR /root | ||
VOLUME /root/.imap-backup | ||
|
||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x /docker-entrypoint.sh | ||
ENTRYPOINT [ "/docker-entrypoint.sh" ] |
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,13 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ $# -gt 0 ]; then | ||
SUBCOMMANDS=$( imap-backup help | grep -E '^\s*imap-backup' | awk '{print $2}' | sort -n | uniq ) | ||
if echo "$SUBCOMMANDS" | grep "^$1$"; then | ||
exec imap-backup "$@" | ||
fi | ||
else | ||
exec imap-backup "$@" | ||
fi | ||
|
||
exec "$@" |