8000 GitHub - almunnings/docker-drupal-api: Dockerised Drupal API
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

almunnings/docker-drupal-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drupal APIs

A local version of the Drupal API for consumption by scraping tools.

Check out https://kapeli.com/dash and https://zealdocs.org/

How it builds

  • 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

1. Build

docker-compose up --build -d

Startup can take up to 5 minutes depending on server size.

2. Check build status

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.

3. After build

Important: Clear the Drupal cache and stop the cron runner.

  • docker-compose exec web drush cr
  • docker-compose stop cron

Deploying on linode

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

Nuke

docker-compose down --rmi all -v --remove-orphans

Changing the API version

Change the BRANCH variable in .docker/web.entrypoint.sh. Nuke docker and repeat.

Admin login

http://localhost/user

  • admin
  • password

About

Dockerised Drupal API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0