Prepared things for Docker
This commit is contained in:
1 parent
f2cefdd429
commit
577715bb40
7 files changed
+108
-17
No files matched your search
@@ -55,6 +55,18 @@ cp config.example.toml jellymove.toml # edit: node_name, jellyfin.api_key, pee
|
||||
docker compose -f deploy/docker-compose.yml up -d
|
||||
```
|
||||
|
||||
Each release publishes an image (x86_64) to the Gitea container registry:
|
||||
`git.malgra.com/ixianpixel/jellymove:<version>`, and `:latest` for anything
|
||||
that isn't a pre-release. It's the same static binary as the systemd tarball,
|
||||
on Alpine. If the package isn't public, log in once with a Gitea token that
|
||||
only has `read:package`:
|
||||
|
||||
```sh
|
||||
docker login git.malgra.com
|
||||
```
|
||||
|
||||
To upgrade, run `docker compose pull && docker compose up -d`.
|
||||
|
||||
- Create an admin API key in Jellyfin (Dashboard → API Keys). jellymove reads
|
||||
every user's watch state.
|
||||
- Use the same `peer.token` on both agents (`openssl rand -hex 32`).
|
||||
@@ -102,8 +114,11 @@ Interrupted transfers resume after a restart.
|
||||
git tag v0.1.1 && git push origin v0.1.1
|
||||
```
|
||||
|
||||
The workflow runs the tests, builds the UI and binary, and attaches the
|
||||
tarball and its `.sha256` to a Gitea release for that tag. The release notes
|
||||
The workflow runs the tests, builds the UI and binary, attaches the tarball
|
||||
and its `.sha256` to a Gitea release for that tag, then pushes the Docker
|
||||
image. It builds the image with `crane`, so the runner needs no Docker
|
||||
socket. It pushes with the workflow's own token; if Gitea refuses that, add
|
||||
`REGISTRY_USER` and `REGISTRY_TOKEN` (`write:package`) secrets. The release notes
|
||||
are that version's section of `CHANGELOG.md`; the workflow stops straight
|
||||
away if there isn't one. Re-running it replaces the files and refreshes the
|
||||
notes. Tags with a `-` (`v0.2.0-rc1`) are marked pre-release.
|
||||
@@ -123,13 +138,19 @@ server. To file things elsewhere, configure this on the **receiving** agent:
|
||||
While a move is running the item exists on both servers, and Jellyswarrm
|
||||
v0.3.1+ shows it once with two versions. Jellyswarrm's merge cache can go stale
|
||||
when files move ([#216](https://github.com/LLukas22/Jellyswarrm/issues/216)).
|
||||
Until that is fixed upstream, a post-move hook can restart it:
|
||||
Until that is fixed upstream, restart Jellyswarrm after a move if the merged
|
||||
view looks wrong. A post-move hook can do it for you:
|
||||
|
||||
```toml
|
||||
[hooks]
|
||||
post_move = "docker restart jellyswarrm"
|
||||
```
|
||||
|
||||
The hook runs with `sh -c` on the **receiving** agent, so it only helps if
|
||||
Jellyswarrm runs on that machine. The Docker image has a shell but no Docker
|
||||
CLI, and mounting `/var/run/docker.sock` gives the container root on the
|
||||
host. Prefer a socket proxy that only allows restarts, or restart by hand.
|
||||
|
||||
## Safety rules
|
||||
|
||||
- Nothing leaves the source until the destination has indexed every file.
|
||||
@@ -146,7 +167,8 @@ post_move = "docker restart jellyswarrm"
|
||||
(`POST /UserItems/{id}/UserData`), `/Library/Media/Updated` timing on large
|
||||
libraries, and multi-version movies.
|
||||
- Against real Jellyswarrm.
|
||||
- The Docker image build (the Dockerfile is written but untested here).
|
||||
- Running the published Docker image, and building from the `Dockerfile`.
|
||||
The image's contents and config are checked, but it hasn't been started yet.
|
||||
- Windows and macOS. The code is cross-platform, but only Linux has been run.
|
||||
|
||||
## Roadmap
|
||||
|
||||
Reference in new issue
Block a user