Compare commits
6 commits
Author | SHA1 | Date | |
---|---|---|---|
|
205b0731db | ||
|
bf0ed943ec | ||
|
f5c1033fc9 | ||
|
ca302bb8db | ||
|
34d07a4fa1 | ||
|
e86863a8ae |
4 changed files with 27 additions and 5 deletions
9
.github/workflows/build-container.yaml
vendored
9
.github/workflows/build-container.yaml
vendored
|
@ -9,11 +9,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to GHCR
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v3
|
||||
if: github.event_name != 'pull_request'
|
||||
with:
|
||||
registry: ghcr.io
|
||||
|
@ -21,7 +22,7 @@ jobs:
|
|||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v4
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
|
|
|
@ -97,6 +97,8 @@ Persistent files are stored in `/app/artifacts` within the container, so you may
|
|||
|
||||
An [example Kubernetes CronJob](./examples/k8s-cronjob.yaml) for running the container is included in the `examples` folder.
|
||||
|
||||
An [example Docker Compose Script](./examples/docker-compose.yaml) for running the container periodically is included in the `examples` folder.
|
||||
|
||||
### Configuration options
|
||||
|
||||
FediFetcher has quite a few configuration options, so here is my quick configuration advice, that should probably work for most people:
|
||||
|
|
19
examples/docker-compose.yaml
Normal file
19
examples/docker-compose.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
name: fedifetcher
|
||||
services:
|
||||
fedifetcher:
|
||||
stdin_open: true
|
||||
tty: true
|
||||
image: ghcr.io/nanos/fedifetcher:latest
|
||||
command: "--access-token=<TOKEN> --server=<SERVER>"
|
||||
# Persist our data
|
||||
volumes:
|
||||
- ./data:/app/artifacts
|
||||
# Use the `deploy` option to enable `restart_policy`
|
||||
deploy:
|
||||
# Don't go above 1 replica to avoid multiple overlapping executions of the script
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
# The `any` condition means even after successful runs, we'll restart the script
|
||||
condition: any
|
||||
# Specify how often the script should run - for example; after 1 hour.
|
||||
delay: 1h
|
|
@ -1219,7 +1219,7 @@ def set_server_apis(server):
|
|||
# support for new server software should be added here
|
||||
software_apis = {
|
||||
'mastodonApiSupport': ['mastodon', 'pleroma', 'akkoma', 'pixelfed', 'hometown', 'iceshrimp'],
|
||||
'misskeyApiSupport': ['misskey', 'calckey', 'firefish', 'foundkey'],
|
||||
'misskeyApiSupport': ['misskey', 'calckey', 'firefish', 'foundkey', 'sharkey'],
|
||||
'lemmyApiSupport': ['lemmy']
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue