Setup "Dockerized dataspectsSystem"
C0169948125
Jump to navigation
Jump to search
|
CanBeInstalled Yes
HasQualityAssuredBy dataspectsLinuxTeam
Step 1: Install Docker, Docker Compose and Ansible
- https://docs.docker.com/install/
- https://docs.docker.com/compose/install/
- https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html
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:
user@dockerserver:~$ mkdir test && cp -r production/docker-compose.yml test/docker-compose.yml
- Edit
user@dockerserver:~/test$ vi docker-compose.yml
, see section "docker-compose.yml files" below:- Remove both the
proxy
Docker service and thenginx_conf
Docker volume. - Add postfix
_test
to all Docker service names. - Specify the
production
's default Docker network as thetest
's default Docker network.
- Remove both the
user@dockerserver:~/test$ docker-compose up [--detach]
- Set
production
MediaWiki to https://www.mediawiki.org/wiki/Manual:$wgReadOnly. mysqldump
production
MediaWiki database into Docker volumeproduction_mediawiki_root
.- Copy entire
production_mediawiki_root
totest_mediawiki_root
. - Edit
test_mediawiki_root
'sLocalSettings.php
:$wgDBserver = "db_test";
$wgServer = "http://test.dataspects.local";
$wgVirtualRestConfig['modules']['parsoid'] = array('url' => 'http://parsoid_test:8000');
- Restore
test
MediaWiki database to Docker servicedb_test
. - Visit http://test.dataspects.local.
Mermaid Flowchart