Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/addshore/wikibase-cloud-status

A live wikibase.cloud status page
https://github.com/addshore/wikibase-cloud-status

wikibase wikibase-cloud

Last synced: 15 days ago
JSON representation

A live wikibase.cloud status page

Awesome Lists containing this project

README

        

# 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:

```sh
python ./py/index.py
```

## Deployment

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

Access:

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

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

```sh
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:

```sh
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:

```sh
webservice status
toolforge jobs list
```