Skip to content

Commit

Permalink
feat: add bitmagnet
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Feb 14, 2025
1 parent 9c2a3df commit b803315
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
25 changes: 25 additions & 0 deletions apps/bitmagnet/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
ARG TARGETPLATFORM
ARG VERSION
FROM ghcr.io/bitmagnet-io/bitmagnet:v${VERSION} AS source

FROM ghcr.io/deedee-ops/alpine:3.21.2

ARG TARGETPLATFORM
ARG VERSION
ARG CHANNEL

ENV HOME=/config

#hadolint ignore=DL3018
RUN apk --no-cache add curl iproute2-ss

COPY --from=source /usr/local/bin/bitmagnet /usr/bin/bitmagnet

USER 65000:65000
WORKDIR /config
EXPOSE 3333
VOLUME ["/config", "/tmp"]
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/base-entrypoint.sh"]
CMD ["/usr/bin/bitmagnet", "worker", "run", "--all"]

LABEL org.opencontainers.image.source="https://github.com/bitmagnet-io/bitmagnet/"
22 changes: 22 additions & 0 deletions apps/bitmagnet/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/gossfile.md#group
group:
abc:
exists: true
gid: 65000
# https://github.com/goss-org/goss/blob/master/docs/gossfile.md#file
file:
/usr/bin/bitmagnet:
exists: true
# https://github.com/goss-org/goss/blob/master/docs/gossfile.md#mount
mount:
/config:
exists: true
/tmp:
exists: true
# https://github.com/goss-org/goss/blob/master/docs/gossfile.md#user
user:
abc:
exists: true
uid: 65000
gid: 65000
17 changes: 17 additions & 0 deletions apps/bitmagnet/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"app": "bitmagnet",
"base": false,
"testMuteCmd": true,
"channels": [
{
"name": "stable",
"renovate::dataSource": "docker",
"renovate::depName": "ghcr.io/bitmagnet-io/bitmagnet",
"version": "0.9.5",
"platforms": [
"linux/amd64",
"linux/arm64"
]
}
]
}

0 comments on commit b803315

Please sign in to comment.