Skip to content

Commit

Permalink
feat: add mbsync
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Feb 7, 2024
1 parent 96904e1 commit 46a5e4d
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
17 changes: 17 additions & 0 deletions apps/mbsync/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# alpine mbsync is bugged
FROM ghcr.io/deedee-ops/ubuntu:22.04

ARG TARGETPLATFORM
ARG VERSION
ARG CHANNEL

# hadolint ignore=DL3008
RUN apt-get update \
&& apt-get install --yes --no-install-recommends isync \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* /var/tmp/* /usr/share/man /usr/local/man /usr/local/share/man

USER 65000:65000
VOLUME ["/config", "/tmp"]
ENTRYPOINT ["/usr/local/bin/base-entrypoint.sh", "/usr/bin/mbsync", "-c", "/config/mbsyncrc"]
CMD ["-a"]
22 changes: 22 additions & 0 deletions apps/mbsync/ci/goss.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
# https://github.com/goss-org/goss/blob/master/docs/manual.md#group
group:
abc:
exists: true
gid: 65000
# https://github.com/aelsabbahy/goss/blob/master/docs/manual.md#file
file:
/usr/bin/mbsync:
exists: true
# https://github.com/goss-org/goss/blob/master/docs/manual.md#mount
mount:
/config:
exists: true
/tmp:
exists: true
# https://github.com/goss-org/goss/blob/master/docs/manual.md#user
user:
abc:
exists: true
uid: 65000
gid: 65000
15 changes: 15 additions & 0 deletions apps/mbsync/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"app": "mbsync",
"base": false,
"testMuteCmd": true,
"channels": [
{
"name": "devel",
"version": "master",
"platforms": [
"linux/amd64",
"linux/arm64"
]
}
]
}

0 comments on commit 46a5e4d

Please sign in to comment.