Testha.se/projects/wielerskalle/self-hosting/

Self-Hosting

Self-hosting Wielerskalle should be easy (standard disclaimer applies)

Here’s how to do it with Docker Compose

  1. clone the source
  2. look in share/deploy/
  3. copy the docker-compose.yml
  4. copy the default config.env and dummy secrets from secrets.env
  5. edit secrets.env, add this file to your .gitignore
  6. edit config.env
  7. type docker compose up

You will have to create your first user for login with the CLI. If you are running with docker compose, you can shell into the container with docker compose exec api bash

wsk create-user --username mietzkatz --name 'Mietz Katz' --email 'mietz@katz'
wsk passwd mietzkatz

optional, to get you started immediately:

wsk competitions create

this will create competition for the current year for men. use –help for more information.

competitions are created also when first needed, but without start/end dates. there is a fix-dates command available, after you’ve imported the race list for that year.

Data Import

Riders, Teams, Races and Results are scraped from Procycling Stats. Please scrape responsibly. The default settings should be friendly.

My Wielerskalle instance uses a session and login cookie that identifies the scraper under a paid subscriber account. Maybe you should do the same. PHPSESSID might already be enough to silence krautflare, but why save those few EUR.

initial import from Procyclingstats

also try wsk scrape --help!

wsk scrape team-list # fetch all teams for this season, create stubs for each rider
wsk scrape rider-details -a # fill rider stubs with details
wsk scrape race-list # get list of races for this season
wsk scrape results -a # all missing results
wsk scrape stage-results -a #

initial fetch can take a while!

Fetching is delegated to a dedicated job worker (you can scale that up if you feel like it). use wsk scrape --inline ... to run the scrape directly without the job queue.