Setup "Dockerized dataspectsSystem"

From FindAndLearn::Cookbook
Jump to: navigation, search

CanBeInstalled Yes

HasQualityAssuredBy dataspectsLinuxTeam

Step 1: Install Docker, Docker Compose and Ansible

Step 2: Configure dataspectsSystem build

[email protected]:~$ tree

  • is used for the initial system build
  • sources
  • will access several Docker images, including from, of which some are private and require require login
  • automatically checks for an existing version of this system build
  • clones/pulls selected GitHub repositories
  • runs selected Ansible tags
  • runs selected Ruby scripts
[email protected]:~$ tree
├── dataspectsSystem/
├── DataspectsDSCustomizationUI
├── DataspectsDSCustomizationRUBY

Step 3: Build dockerized dataspectsSystem

[email protected]:~/dataspectsSystem$ ./

Clone a dataspectsSystem e.g. for testing


Let's say you have a production system that you want to clone as a test system, then:

  1. [email protected]:~$ mkdir test && cp -r production/docker-compose.yml test/docker-compose.yml
  2. Edit [email protected]:~/test$ vi docker-compose.yml, see section "docker-compose.yml files" below:
    • Remove both the proxy Docker service and the nginx_conf Docker volume.
    • Add postfix _test to all Docker service names.
    • Specify the production's default Docker network as the test's default Docker network.
  3. [email protected]:~/test$ docker-compose up [--detach]
  4. Set production MediaWiki to$wgReadOnly.
  5. mysqldump production MediaWiki database into Docker volume production_mediawiki_root.
  6. Copy entire production_mediawiki_root to test_mediawiki_root.
  7. Edit test_mediawiki_root's LocalSettings.php:
    • $wgDBserver = "db_test";
    • $wgServer = "http://test.dataspects.local";
    • $wgVirtualRestConfig['modules']['parsoid'] = array('url' => 'http://parsoid_test:8000');
  8. Restore test MediaWiki database to Docker service db_test.
  9. Visit http://test.dataspects.local.
Mermaid Flowchart