Wikimedia Hackathon 2019 Presenter: Tom with the help from Alaa
Prerequisite: a working installation of a Linux (preferably Ubuntu on a Virtual machine like e.g. Oracle VM VirtualBox)
In general follow the installation steps from:
https://github.com/wmde/wikibase-docker/blob/master/setup.sh
that you will need to copy/paste into a shell console.
Also check README.
Caveat: I am running Linux Mint, so I need to know the base Ubuntu version.
Some commands will be specific for Linux Mint, depending on the base Ubuntu version. Verify:
https://www.ubuntu.com/#download
https://docs.docker.com/install/linux/docker-ce/ubuntu/
In general the above setup.sh script should be used; unless some specific Mint/Ubuntu version or alternative command is required.
- Get the Docker images from the web site
- Install docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ bionic \ stable"
Install Docker composer failed:
sudo pip install docker-compose
is replaced for Linux Mint by an alternative command:
sudo apt install docker-compose
Note: Before running git clone you should create and set a specific directory to be sure the software arrives in the right environment.
We have the SW installed now and the system should be running now.
Check with a browser:
http://localhost:8181/wiki/Main_Page
https://github.com/wmde/wikibase-docker/blob/master/wdqs-frontend/latest/default.conf
Google: list docker exposed ports
https://docs.docker.com/engine/reference/commandline/port/
https://github.com/wmde/wikibase-docker/tree/master/quickstatements
sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 23fb81cc1834 wikibase/wdqs:0.3.0 "/entrypoint.sh /run…" 6 minutes ago Up 6 minutes wikibasedocker_wdqs-updater_1 14582ffce123 wikibase/quickstatements:latest "/bin/bash /entrypoi…" 6 minutes ago Up 6 minutes 0.0.0.0:9191->80/tcp wikibasedocker_quickstatements_1 bfcdedeb5b91 wikibase/wikibase:1.32-bundle "/bin/bash /entrypoi…" 6 minutes ago Up 6 minutes 0.0.0.0:8181->80/tcp wikibasedocker_wikibase_1 7bee2dbd70a8 wikibase/wdqs-frontend:latest "/entrypoint.sh ngin…" 6 minutes ago Up 6 minutes 0.0.0.0:8282->80/tcp wikibasedocker_wdqs-frontend_1 f3e8857f8c73 wikibase/wdqs-proxy "/bin/sh -c \"/entryp…" 6 minutes ago Up 6 minutes 0.0.0.0:8989->80/tcp wikibasedocker_wdqs-proxy_1 e1c5dc91a61f wikibase/elasticsearch:5.6.14-extra "/docker-entrypoint.…" 7 minutes ago Up 6 minutes 9200/tcp, 9300/tcp wikibasedocker_elasticsearch_1 67b6af1ea7e0 mariadb:10.3 "docker-entrypoint.s…" 7 minutes ago Up 6 minutes 3306/tcp wikibasedocker_mysql_1 f2180b9f9441 wikibase/wdqs:0.3.0 "/entrypoint.sh /run…" 7 minutes ago Up 6 minutes 9999/tcp wikibasedocker_wdqs_1