EOSC-Perf is a webapp made to host, search, compare and analyze benchmark results from many very diverse university server clusters.
- Create a python venv
python -m venv venv
- Activate it
. ./venv/bin/activate
- Install docker-compose
python -m pip install docker-compose
- Whenever you need to use docker-compose, run
./venv/bin/docker-compose
instead
- Set up a
.env
file:cp .env-example .env
, configure it following the comments - Configure a database user password in
database_secret.txt
- Configure flask cookie encryption key in
cookie_secret.txt
- Configure NGINX API credentials in
nginx_api_credentials.txt
in the following format:
<USERNAME>
<PASSWORD>
- Run
docker-compose -f docker-compose.yaml -f docker-compose.prod.yaml build
- Run
docker-compose -f docker-compose.yaml -f docker-compose.prod.yaml up
Run ./scripts/reset-database.sh
(Linux) or ./scripts/reset-database.ps1
(Windows)
- Uncomment
- ./backups:/backups
in docker-compose.yaml - Reset the database:
bash scripts/reset-database.sh
- Start database container:
docker-compose up database
- Connect to database container and run
pg_restore -d ${POSTGRES_DB} -F t <path to your backup tar> -c -U ${POSTGRES_USER}