Self-hosting Wielerskalle should be easy (standard disclaimer applies)
Here’s how to do it with Docker Compose
- clone the source
- look in share/deploy/
- copy the docker-compose.yml
- copy the default config.env and dummy secrets from secrets.env
- edit secrets.env, add this file to your
.gitignore
- edit config.env
- 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.
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!
Note that my WielerSkalle uses a separate backend for user management and authentication: Skara
You might neither have that one up & running, nor will you want my instance to manage your users.
Without Skara though you are reduced to creating and managing your users using the wsk
CLI, see below
Data Import
Riders, Teams, Races and Results are scraped from Procycling Stats Please scrape responsibly.