Skip to content

Test and production environments

Marco Fossati edited this page Nov 15, 2018 · 8 revisions

soweego ships with 2 Docker containers: test and production.

You can access the folder shared with the local machine at /app/shared: it is useful to persist input and output files through multiple executions.

Get started

  1. Install Docker;
  2. git clone https://github.com/Wikidata/soweego.git;
  3. cd soweego;
  4. set the DOCKER_SHARED_FOLDER environment variable in the .env file with an absolute path of your choice.

Launch the test environment

  1. ./scripts/docker/run_soweego_test.sh;
  2. you are now in a Docker container BASH shell with a fully working soweego instance.

Connect to the test database shell

The test environment comes with a running MariaDB instance.

  1. docker exec -it soweego_db_1 /bin/bash;
  2. mysql -uroot -hlocalhost -pdba soweego.

Launch the production environment

  1. ./scripts/docker/run_soweego_prod.sh;
  2. if you want to override the production database credentials, pass the above script a JSON file formatted as per ${PROJECT_ROOT}/soweego/importer/resources/db_credentials.json.

Clone this wiki locally