Informatievlaanderen / VSDS-LDES-E2E-testing

End-to-end tests and tooling needed for testing LDES components build as part of VSDS
European Union Public License 1.2
5 stars 2 forks source link

Inconsistent docker-compose file #73

Closed zargha closed 2 years ago

zargha commented 2 years ago

The Problem

While running e2e-test/use-cases/gipod/4.time-fragment-ldes, docker compose fails to run because ldes-server-simulator doesnt start up.

Error logs

Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /home/tests/Tests/informatievlaanderen/VSDS-LDES-E2E-testing/e2e-test/support/data/empty

In env.time-fragment: LDES_SERVER_SIMULATOR_SEED_FOLDER=../../../../ldes-server-simulator/data/empty

docker-compose.yaml:

  ldes-server-simulator:
    container_name: ${USECASE_NAME:-simulator-workflow-server-mongo}_ldes-server-simulator
    image: ghcr.io/informatievlaanderen/ldes-server-simulator:${LDES_SERVER_SIMULATOR_TAG}
    env_file:
      - env.simulator
    environment:
      - BASEURL=http://ldes-server-simulator
      - SEED=/tmp/data
    ports:
      - ${LDES_SERVER_SIMULATOR_PORT}:80
    volumes:
      - type: bind
        source: ${LDES_SERVER_SIMULATOR_SEED_FOLDER}
        target: /tmp/data
rorlic commented 2 years ago

Please check your env.user file. Does your setting also say the following? LDES_SERVER_SIMULATOR_SEED_FOLDER=../../../../ldes-server-simulator/data/empty

zargha commented 2 years ago

Issued tested with LDES_SERVER_SIMULATOR_SEED_FOLDER=../../../../ldes-server-simulator/data/empty