Skip to content

addshore/wikibase-cloud-status

Repository files navigation

Wikibase Cloud Status (live)

A cron run from toolforge that populates CSV files with data around the status of wikibase.cloud.

Under the hood, this is performing checks on https://addshore-wikibase-cloud-status.wikibase.cloud/

Development

You can run the cron locally with:

python ./py/index.py 

Deployment

The code is deployed to the addshore-wikibase-cloud-status tool.

Access:

ssh login.toolforge.org
become addshore-wikibase-cloud-status

Initial setup of python venv (can take ~5 mins):

mkdir -p ~/www/static
mkdir -p ~/public_html
wget https://raw.githubusercontent.com/addshore/wikibase-cloud-status/main/.lighttpd.conf -O .lighttpd.conf
webservice start
# todo wget venve
toolforge jobs run bootstrap-venv --command "cd $PWD && ./bootstrap_venv.sh" --image python3.11 --wait
wget https://raw.githubusercontent.com/addshore/wikibase-cloud-status/main/py/index.py -O index.py
toolforge jobs run pychecks --command "pyvenv/bin/python index.py" --image python3.11 --continuous

Then you can update or start the cron with:

wget https://raw.githubusercontent.com/addshore/wikibase-cloud-status/main/py/index.py -O index.py
toolforge jobs restart pychecks
wget https://raw.githubusercontent.com/addshore/wikibase-cloud-status/main/.lighttpd.conf -O .lighttpd.conf
webservice restart

You can check the status of the job and webservice with:

webservice status
toolforge jobs list