Toyhouse Migration

From PKC
Jump to navigation Jump to search

Migration toyhouse.wiki

Installation Inspection

On source server, below are the fact that is found. Installation is using docker container, we can check with docker ps command, and below are the output

docker ps

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES de6bdd7ae283 jenkins/jenkins:lts "/sbin/tini -- /usr/…" 23 months ago Up 23 months 0.0.0.0:50000->50000/tcp, 0.0.0.0:8079->8080/tcp jenkins 9946e6a00c0e daocloud.io/weimar/xlp_wordpress:20180820185725 "docker-entrypoint.s…" 2 years ago Up 23 months 0.0.0.0:801->80/tcp wordpress 623b88d7f03d daocloud.io/weimar/xlp_mediawiki:20180827140844 "docker-php-entrypoi…" 2 years ago Up 23 months 0.0.0.0:81->80/tcp mediawiki 45fc7a8eab37 daocloud.io/weimar/xlp_matomo:20180820163542 "/entrypoint.sh /bin…" 2 years ago Up 23 months 0.0.0.0:82->80/tcp matomo 9e5a7bfaac58 grafana/grafana:20191227 "/run.sh" 2 years ago Up 23 months 0.0.0.0:86->3000/tcp grafana 4973f9da1035 daocloud.io/weimar/xlp_kibana:20180821233221 "/bin/sh -c /tmp/xlp…" 2 years ago Up 23 months 0.0.0.0:5601->5601/tcp kibana 114523785c1e redpointgames/phabricator:20191227 "/bin/bash /app/init…" 2 years ago Up 23 months 24/tcp, 0.0.0.0:10022->22/tcp, 0.0.0.0:85->80/tcp, 0.0.0.0:10443->443/tcp phabricator 14ae9d61b2c3 mariadb:10.3 "docker-entrypoint.s…" 2 years ago Up 23 months 0.0.0.0:3306->3306/tcp mariadb b649348e492d nginx:stable "nginx -g 'daemon of…" 2 years ago Up 22 months 0.0.0.0:80->80/tcp nginx 19881b34688e daocloud.io/weimar/xlp_elasticsearch:20180822142218 "/bin/sh -c /tmp/xlp…" 2 years ago Up 23 months 9200/tcp, 9300/tcp elasticsearch 9c6ee425480d mysql:5.7.14 "docker-entrypoint.s…" 2 years ago Up 23 months 3306/tcp phabricator_mysql 5fc0d665d4a8 mem2018_wordpress:20180820185725 "docker-entrypoint.s…" 2 years ago Up 2 years 0.0.0.0:89->80/tcp mem2018_wordpress_1 0d83ce53ae09 daocloud.io/weimar/xlp_mediawiki:20180827140844 "docker-php-entrypoi…" 2 years ago Up 2 years 0.0.0.0:88->80/tcp mem2018_mediawiki_1 30d4d1677dda mariadb:10.3 "docker-entrypoint.s…" 2 years ago Up 2 years 3306/tcp mem2018_mariadb_1

Outline Planning

  1. Export all docker container from source server using docker command
  2. Transfer all file to target server
  3. Prepare the target server
  4. Re-Create the docker-run command
  5. Bring docker container up
  6. Solve all issues

Below are the process of above plan, and all of the issues, and how to solve them.

Exporting all the containers

Transfer all file to target server

Prepare the target server

Mariadb Container

Mediawiki Container

Matomo Container

Once the container is up, found authorization problem that we need to enable access for user id 1000 on matomo volume, below is the command to perform that action.

sudo useradd -u 1000 mtm_user

Execution

References