Setup "Dockerized dataspectsSystem"

From dataspects::Wiki
C0169948125
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
.
├── my_environment_variables.sh
└── build_my_system.sh

build_my_system.sh

  • is used for the initial system build
  • sources my_environment_variables.sh
  • will access several Docker images, including from https://hub.docker.com/r/dataspects/, 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
├── my_environment_variables.sh
└── build_my_system.sh

Step 3: Build dockerized dataspectsSystem

someUser@someWorkstation:~/dataspectsSystem$ ./build_my_system.sh

Clone a dataspectsSystem e.g. for testing

Idea

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 https://www.mediawiki.org/wiki/Manual:$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