A local version of the Drupal API for consumption by scraping tools.
Check out https://kapeli.com/dash and https://zealdocs.org/
- Boot: Run cron job and queue up API processing.
- Every minute a cronjob processes about 500 tasks out of a queue.
- After initial processing it builds class relations.
- http://localhost/api/drupal
docker-compose up --build -d
Startup can take up to 5 minutes depending on server size.
docker-compose exec web drush api:count-queues
If there is only 1 task remaining, it's going to be the class relations task. You need to wait.
Important: Clear the Drupal cache and stop the cron runner.
docker-compose exec web drush cr
docker-compose stop cron
- Ubuntu 20 or whatever flavour you're good with.
- 2cpu 4gb ram minimum. More CPU better.
- Install docker: https://www.linode.com/docs/guides/installing-and-using-docker-on-ubuntu-and-debian/
Install docker compose:
sudo curl -L https://github.com/docker/compose/releases/download/1.28.5/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose down --rmi all -v --remove-orphans
Change the BRANCH
variable in .docker/web.entrypoint.sh
. Nuke docker and repeat.
- admin
- password