Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Based on https://github.com/AnalogJ/docker-cron

FROM debian:bookworm-slim

RUN apt-get update && \
apt-get install -y \
busybox-static \
geographiclib-tools \
mariadb-client \
jq \
curl \
&& mkdir -p /var/spool/cron/crontabs && \
rm -rf /etc/cron.*/* && \
rm -rf /var/lib/apt/lists/*

WORKDIR /blissey

ENTRYPOINT ["sh", "-c", " \
env >> /etc/environment && \
./settings.run && \
cat ./crontab.txt >> /var/spool/cron/crontabs/root && \
echo \"$@\" && \
exec \"$@\" \
", "--"]

CMD ["busybox", "crond", "-f", "-l", "2"]
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,23 @@ Processing is done on interval 15/60/1440/10080 minutes and can be displayed by
- enable save logs in controller config is you want them processed
- mysql and jq installed

## 2 Setup
## 2 Instructions
- clone Blissey, `git clone https://github.com/UnownHash/Blissey.git && cd Blissey`
- create stats db and user (user needs to have access to stats/controller/golbat db)
- copy and fill out config, `cp default_files/config.ini.example config.ini`

### 2.1 Standard Setup
- execute setting.run
- add content of crontab.txt to your cron

### 2.1 Geofences
### 2.2 Docker Setup
- Authenticate to [GitHub Packages's docker container registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry)
- copy `docker-compose.yml.example` to `docker-compose.yml`
- modify it to your needs
- ``docker compose up -d``
- ``settings.run`` & ``crontab.txt`` will get executed automatically

### 2.3 Geofences
Blissey needs quest and mon fences in order to aggregate data. 2 ways of doing this:<BR>
1 Use Koji<BR>
- set config.ini accordingly
Expand Down
17 changes: 17 additions & 0 deletions docker-compose.yml.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
services:
blissey:
build: .
container_name: blissey
restart: unless-stopped
networks:
- scanner
volumes:
# ↓ Must match dragonite_path in your config.ini
- ./path/to/dragonite:/home/dkmur/Dragonite # Change according to your directory structure
- ./:/blissey
# Optional
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro

networks:
scanner: