Setup "Dockerized dataspectsSystem"

From dataspects::Wiki
Jump to navigation Jump to search

CanBeInstalled Yes

HasQualityAssuredBy dataspectsLinuxTeam

Step 1: Install Docker, Docker Compose and Ansible

Step 2: Configure dataspectsSystem build

someUser@someWorkstation:~$ 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
someUser@someWorkstation:~$ tree
├── dataspectsSystem/
├── DataspectsDSCustomizationUI
├── DataspectsDSCustomizationRUBY

Step 3: Build dockerized dataspectsSystem

someUser@someWorkstation:~/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. user@dockerserver:~$ mkdir test && cp -r production/docker-compose.yml test/docker-compose.yml
  2. Edit user@dockerserver:~/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. user@dockerserver:~/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