<commit_before>version: "2"
services:

  hapifhir:
    image: openlmis/hapifhir:${OL_HAPIFHIR_VERSION}
    mem_limit: 512m
    env_file: settings.env
    environment:
      JAVA_OPTS: '-Xmx256m -Dlogging.config=/logback.xml'
    volumes:
      - './logback.xml:/logback.xml'
    depends_on: [log]

  referencedata:
    image: openlmis/referencedata:${OL_REFERENCEDATA_VERSION}
    env_file: settings.env
    mem_limit: 1536m
    environment:
      JAVA_OPTS: '-Xmx1536m -Dlogging.config=/logback.xml'
      spring_profiles_active: demo-data, refresh-db
      fhirClient.enabled: "true"
    volumes:
    - './logback.xml:/logback.xml'
    depends_on: [log]

  contract_tests:
    mem_limit: 768m
    image: openlmis/dev:${DOCKER_DEV_IMAGE_VERSION}
    environment:
      GRADLE_OPTS: '-Xmx256m'
    env_file: settings.env
    volumes:
      - '.:/app'
      - 'gradlecache:/gradle'
    links:
    - db
    - log
    - nginx
    - consul
    - auth
    - referencedata
    - hapifhir

    entrypoint:
      - 'gradle'
      - 'clean'
      - 'waitFor'
      - '-Pcontainers=
        ${BASE_URL}/auth,
        ${BASE_URL}/referencedata'
      - 'cucumber'
      - '-Ptags=@LocationTests'
      - '--stacktrace'
      - '--no-daemon'

volumes:
  gradlecache:
    external: false<commit_msg>OLMIS-5415: wait for hapifhir service to start up<commit_after>version: "2"
services:

  hapifhir:
    image: openlmis/hapifhir:${OL_HAPIFHIR_VERSION}
    mem_limit: 512m
    env_file: settings.env
    environment:
      JAVA_OPTS: '-Xmx256m -Dlogging.config=/logback.xml'
    volumes:
      - './logback.xml:/logback.xml'
    depends_on: [log]

  referencedata:
    image: openlmis/referencedata:${OL_REFERENCEDATA_VERSION}
    env_file: settings.env
    mem_limit: 1536m
    environment:
      JAVA_OPTS: '-Xmx1536m -Dlogging.config=/logback.xml'
      spring_profiles_active: demo-data, refresh-db
      fhirClient.enabled: "true"
    volumes:
    - './logback.xml:/logback.xml'
    depends_on: [log]

  contract_tests:
    mem_limit: 768m
    image: openlmis/dev:${DOCKER_DEV_IMAGE_VERSION}
    environment:
      GRADLE_OPTS: '-Xmx256m'
    env_file: settings.env
    volumes:
      - '.:/app'
      - 'gradlecache:/gradle'
    links:
    - db
    - log
    - nginx
    - consul
    - auth
    - referencedata
    - hapifhir

    entrypoint:
      - 'gradle'
      - 'clean'
      - 'waitFor'
      - '-Pcontainers=
        ${BASE_URL}/auth,
        ${BASE_URL}/referencedata,
        ${BASE_URL}/hapifhir'
      - 'cucumber'
      - '-Ptags=@LocationTests'
      - '--stacktrace'
      - '--no-daemon'

volumes:
  gradlecache:
    external: false
{'fraction_non_alphanumeric': 0.12623199393479909, 'fraction_numerical': 0.017437452615617893, 'mean_word_length': 2.3028785982478097, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '330275', 'n_tokens_mistral': 1045, 'n_tokens_neox': 988, 'n_words': 155}