Note
This is no longer supported or in use. Use diffcalc-sheet-generator instead.
A small script which auto-deploys a dockerized instance of osu!web built for difficulty + pp calculation.
- docker (latest)
- docker-compose (latest)
- Database dumps placed in
./sql
- Beatmap dumps placed in
./beatmaps
- nginx, with the user having write permissions to
/etc/nginx/sites-enabled
- Adjust
ports.dat
to a desired starting port. This port is mapped to port80
in the dockerized instances, and is incremented by 1 with each deploy. - Adjust
((YOUR-DOMAIN-HERE))
innginx.tpl
to point to the domain of your choice.
Note: Do NOT edit the{DOMAIN}
or{PORT}
fields. - Create a directory with the desired subdomain name.
- Set variables listed below, as desired.
- Run the script in the directory previously created.
- Running docker commands manually requires a UID. This can be resolved by
export UID
. - The ES indexer runs immediately after the pp calculator starts. Just find the container via
docker container ls
and kill it. - The ES indexer does not run after the pp calculator exits. Run it via
docker-compose up -d esindexer
after the pp calculator exits.
The calculators can be re-run without deploying new instances. Adjust the osu-performance
, osu-server
, and osu-server/osu
repos to point the new repo HEADs, and run the following:
docker-compose up ((container here))
Where ((container here))
is one of the following:
ppcalc
diffcalc
Afterwards, run docker-compose up -d esindexer
.
PP_REPO
- The osu!performance repository to use. E.g.ppy/osu-performance
.PP_BRANCH
- The osu!performance branch to use. E.g.ppy/master
.OSU_SERVER_REPO
- The osu!server repository to use. E.g.ppy/osu-server
.OSU_SERVER_BRANCH
- The osu!server branch to use. E.g.ppy/master
.OSU_REPO
- The osu! repository to use. E.g.ppy/osu
.OSU_BRANCH
- The osu! branch to use. E.g.ppy/master
.ES_REPO
- The osu!es-indexer repository to use. E.g.ppy/osu-elastic-indexer
.ES_BRANCH
- The osu!es-indexer branch to use. E.g.ppy/master
.WEB_REPO
- The osu!web repository to use. E.g.ppy/osu-web
.WEB_BRANCH
- The osu!web branch to use. E.g.ppy/master
.
Note: The branch must be compatible with smoogipoo/pp-tester.