danielalvsaaker / tf-viewer

Selfhosted web dashboard for activity tracking - written in Rust!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker container for Raspberry Pi?

conrad82 opened this issue · comments

In the readme, it is mentioned that it runs on Raspberry Pi 3A+

The docker container on docker hub only supports linux/amd64, are there plans to build it also for ARM devices like the Pi?

Yes, thanks for reminding me that I have to figure out how to cross-compile docker images.😁

I'll try to push out an ARM image this weekend.

Cross-compiling turned out to be a bigger beast than I expected, but I finally made it work. Pull the newest docker image and let me know if it runs on your device!

Thanks! :)

It did not run, however :\

$ sudo docker pull danielalvsaaker/tf-viewer
Using default tag: latest
latest: Pulling from danielalvsaaker/tf-viewer
069a56d6d07f: Already exists 
08fbe2677d62: Pull complete 
fd4100ec53c5: Pull complete 
56a705699989: Pull complete 
Digest: sha256:3a03f64b011cfbf921dbf0b8039daffe0751d8c445db75d6ba760f4a9e3ffb42
Status: Downloaded newer image for danielalvsaaker/tf-viewer:latest
docker.io/danielalvsaaker/tf-viewer:latest


$ sudo docker run -e TZ='Europe/Oslo' -v data:/data -p 8081:8080 danielalvsaaker/tf-viewer
thread 'main' panicked at 'Failed to load: SledError { source: Unsupported("the \'compression\' feature must be enabled") }', src/main.rs:23:43
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Panic in Arbiter thread.

Ok, I know why. Let me just rebuild and push. Will probably take 30 minutes.

Pushed to dockerhub.

It works! Thanks! :) 🥇
Web page shows up

$ sudo docker run -e TZ='Europe/Oslo' -v data:/data -p 8081:8080 danielalvsaaker/tf-viewer
Config file not found, starting with defaults.
Cookie key is missing or shorter than 32 bytes, generating a key...
Running at 0.0.0.0:8080

dcfdb99 75f9244 d8ddfaa