-
Notifications
You must be signed in to change notification settings - Fork 10
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.
- Install Docker;
-
git clone https://github.com/Wikidata/soweego.git; -
cd soweego; - set the
DOCKER_SHARED_FOLDERenvironment variable in the.envfile with an absolute path of your choice.
-
./scripts/docker/run_soweego_test.sh; - you are now in a Docker container BASH shell with a fully working soweego instance.
The test environment comes with a running MariaDB instance.
-
docker exec -it soweego_db_1 /bin/bash; -
mysql -uroot -hlocalhost -pdba soweego.
-
./scripts/docker/run_soweego_prod.sh; - 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.