Browse Source

Added a Dockerfile and example configs

master
Drew Short 4 years ago
parent
commit
9ab21e1cb7
  1. 7
      .dockerignore
  2. 14
      Dockerfile
  3. 19
      README.md
  4. 3
      config.json.example
  5. 3
      state.json.example

7
.dockerignore

@ -0,0 +1,7 @@
.git/
target/
tmp/
*.json
*.md
*.abbj
*.example

14
Dockerfile

@ -0,0 +1,14 @@
FROM rust:1.43.1-slim-stretch as build
COPY . /project
WORKDIR /project
RUN apt-get update \
&& apt-get install -y pkg-config libssl-dev curl
RUN cargo build --release
FROM debian:stretch-slim
RUN apt-get update \
&& apt-get install -y curl \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /project/target/release/animebox-sync /usr/bin/animebox-sync
WORKDIR /app
CMD ["animebox-sync", "backup.abbj", "download"]

19
README.md

@ -0,0 +1,19 @@
# AnimeBox Sync
A tool to read AnimeBox backup files and download the favorited files
## Usage
### Docker
To download all favorites from a backup file.
```bash
docker run -v <abbj file>:/app/backup.abbj -v <save directory>:/app/tmp/ -v <state file>:/app/state.json sothr/animebox-sync:latest
```
To list all searches from a backup file.
```bash
docker run -v <abbj file>:/app/backup.abbj sothr/animebox-sync:latest animebox-sync backup.abbj searches
```

3
config.json.example

@ -0,0 +1,3 @@
{
"save_directory": "tmp"
}

3
state.json.example

@ -0,0 +1,3 @@
{
"downloaded": []
}
Loading…
Cancel
Save