Skip to content

Example configuration doesn't build in branch «tallinn» #672

@olea

Description

@olea

Procedure:

  • git clone git@github.com:wmde/wikibase-release-pipeline.git
  • cd wikibase-release-pipeline/
  • git checkout tallinn
  • cd example/
  • docker compose --env-file template.env up --wait

One container doesn't build and error message is:

dependency failed to start: container wikibase-suite-example-wikibase-1 is unhealthy

Checking logs:

  • docker logs wikibase-suite-example-wikibase-1

MW_ADMIN_NAME is required but isn't set. You should pass it to docker. See: https://docs.docker.com/engine/reference/commandline/run/#set-environment-variables--e---env---env-file

After studying the problem it's found because variables have been renamed (and some deleted) in docker-compose.yml. This happens also with the wikibase-suite-example-quickstatements-1 container.

With this patch the configuration builds up as expected:

diff --git a/example/docker-compose.yml b/example/docker-compose.yml
index ecce58f..5161495 100644
--- a/example/docker-compose.yml
+++ b/example/docker-compose.yml
@@ -19,12 +19,20 @@ services:
       - quickstatements-config:/quickstatements/data
     environment:
       SETUP_MW_ADMIN_NAME: ${SETUP_MW_ADMIN_NAME}
+      MW_ADMIN_NAME: ${SETUP_MW_ADMIN_NAME}
       SETUP_MW_ADMIN_PASS: ${SETUP_MW_ADMIN_PASS}
+      MW_ADMIN_PASS: ${SETUP_MW_ADMIN_PASS}
       SETUP_MW_ADMIN_EMAIL: ${SETUP_MW_ADMIN_EMAIL}
+      MW_ADMIN_EMAIL: ${SETUP_MW_ADMIN_EMAIL}
+      MW_WG_SECRET_KEY: "farfollas"
       SETUP_DB_SERVER: mysql:3306
+      DB_SERVER: mysql:3306
       SETUP_DB_USER: ${SETUP_DB_USER}
+      DB_USER: ${SETUP_DB_USER}
       SETUP_DB_PASS: ${SETUP_DB_PASS}
+      DB_PASS: ${SETUP_DB_PASS}
       SETUP_DB_NAME: ${SETUP_DB_NAME}
+      DB_NAME: ${SETUP_DB_NAME}
       MW_WG_SERVER: http://${WIKIBASE_PUBLIC_HOST}
       MW_WG_ENABLE_UPLOADS: false
       WIKIBASE_PINGBACK: false
@@ -177,6 +185,8 @@ services:
     volumes:
       - quickstatements-config:/quickstatements/data
     environment:
+      QS_PUBLIC_SCHEME_HOST_AND_PORT: http://${QUICKSTATEMENTS_PUBLIC_HOST}
+      WB_PUBLIC_SCHEME_HOST_AND_PORT: http://${WIKIBASE_PUBLIC_HOST}
       WB_PROPERTY_NAMESPACE: 122
       WB_PROPERTY_PREFIX: "Property:"
       WB_ITEM_NAMESPACE: 120
 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions