From 6767071a04cdc8dd035153d489cc5eada96b9bc2 Mon Sep 17 00:00:00 2001 From: Omur Date: Fri, 4 Sep 2026 13:06:51 +0300 Subject: [PATCH] change mounting --- .dockerignore | 17 +++++++++++++++++ .../additional_files/blogapi/blogapi.sql | 0 .../additional_files/blogapi/data.sql | 0 .../familie-ba-sak/mockoauth2.json | 0 .../joinus/joinus-mongo-seed.js | 0 .../joinus/joinus-neo4j-seed.cypher | 0 .../microcks/microcks-realm-sample.json | 0 .../additional_files/ocvn/init_db.sql | 0 .../ohsome-api/heidelberg.mv.db | Bin .../pay-publicapi/em_config.yaml | 0 .../reservations-api/init.json | 0 .../reservations-api/mongo-init.js | 0 .../reservations-api/mongo_import.sh | 0 .../additional_files/scout-api/init_db.sql | 0 .../scout-api/scout_api_evomaster.yml | 0 .../spring-ecommerce/init.json | 0 .../spring-ecommerce/mongo_import.sh | 0 .../swagger-petstore/inflector.yaml | 0 .../tiltaksgjennomforing/mockoauth2.json | 0 .../additional_files/webgoat/test.mv.db | Bin dockerfiles/blogapi.yaml | 4 ++-- dockerfiles/familie-ba-sak.yaml | 2 +- dockerfiles/joinus.yaml | 4 ++-- dockerfiles/microcks.yaml | 2 +- dockerfiles/ocvn.dockerfile | 2 +- dockerfiles/ohsome-api.dockerfile | 2 +- dockerfiles/pay-publicapi.dockerfile | 2 +- dockerfiles/reservations-api.yaml | 6 +++--- dockerfiles/scout-api.dockerfile | 4 ++-- dockerfiles/spring-ecommerce.yaml | 4 ++-- dockerfiles/swagger-petstore.dockerfile | 2 +- dockerfiles/tiltaksgjennomforing.yaml | 2 +- dockerfiles/webgoat.dockerfile | 2 +- notes_adding_suts.txt | 8 +++++--- scripts/createDockerFiles.py | 7 +++++++ scripts/dockerize/data/sut.csv | 14 +++++++------- scripts/dockerize/docker_generator.py | 4 ++-- 37 files changed, 57 insertions(+), 31 deletions(-) create mode 100644 .dockerignore rename {scripts/dockerize/data => dockerfiles}/additional_files/blogapi/blogapi.sql (100%) rename {scripts/dockerize/data => dockerfiles}/additional_files/blogapi/data.sql (100%) rename {scripts/dockerize/data => dockerfiles}/additional_files/familie-ba-sak/mockoauth2.json (100%) rename {scripts/dockerize/data => dockerfiles}/additional_files/joinus/joinus-mongo-seed.js (100%) rename {scripts/dockerize/data => dockerfiles}/additional_files/joinus/joinus-neo4j-seed.cypher (100%) rename {scripts/dockerize/data => dockerfiles}/additional_files/microcks/microcks-realm-sample.json (100%) rename {scripts/dockerize/data => dockerfiles}/additional_files/ocvn/init_db.sql (100%) rename {scripts/dockerize/data => dockerfiles}/additional_files/ohsome-api/heidelberg.mv.db (100%) rename {scripts/dockerize/data => dockerfiles}/additional_files/pay-publicapi/em_config.yaml (100%) rename {scripts/dockerize/data => dockerfiles}/additional_files/reservations-api/init.json (100%) rename {scripts/dockerize/data => dockerfiles}/additional_files/reservations-api/mongo-init.js (100%) rename {scripts/dockerize/data => dockerfiles}/additional_files/reservations-api/mongo_import.sh (100%) rename {scripts/dockerize/data => dockerfiles}/additional_files/scout-api/init_db.sql (100%) rename {scripts/dockerize/data => dockerfiles}/additional_files/scout-api/scout_api_evomaster.yml (100%) rename {scripts/dockerize/data => dockerfiles}/additional_files/spring-ecommerce/init.json (100%) rename {scripts/dockerize/data => dockerfiles}/additional_files/spring-ecommerce/mongo_import.sh (100%) rename {scripts/dockerize/data => dockerfiles}/additional_files/swagger-petstore/inflector.yaml (100%) rename {scripts/dockerize/data => dockerfiles}/additional_files/tiltaksgjennomforing/mockoauth2.json (100%) rename {scripts/dockerize/data => dockerfiles}/additional_files/webgoat/test.mv.db (100%) diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..4136727f8 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,17 @@ +.git +**/.idea +**/*.iml + +# Source trees: only their compiled classes are copied (see jacoco.dockerfile) +jdk_*/** +!jdk_*/**/target/classes/** +!jdk_*/**/build/classes/** + +# Never copied by any Dockerfile +scripts +experiments +process_data +statistics +runner +js_npm +dotnet_3 diff --git a/scripts/dockerize/data/additional_files/blogapi/blogapi.sql b/dockerfiles/additional_files/blogapi/blogapi.sql similarity index 100% rename from scripts/dockerize/data/additional_files/blogapi/blogapi.sql rename to dockerfiles/additional_files/blogapi/blogapi.sql diff --git a/scripts/dockerize/data/additional_files/blogapi/data.sql b/dockerfiles/additional_files/blogapi/data.sql similarity index 100% rename from scripts/dockerize/data/additional_files/blogapi/data.sql rename to dockerfiles/additional_files/blogapi/data.sql diff --git a/scripts/dockerize/data/additional_files/familie-ba-sak/mockoauth2.json b/dockerfiles/additional_files/familie-ba-sak/mockoauth2.json similarity index 100% rename from scripts/dockerize/data/additional_files/familie-ba-sak/mockoauth2.json rename to dockerfiles/additional_files/familie-ba-sak/mockoauth2.json diff --git a/scripts/dockerize/data/additional_files/joinus/joinus-mongo-seed.js b/dockerfiles/additional_files/joinus/joinus-mongo-seed.js similarity index 100% rename from scripts/dockerize/data/additional_files/joinus/joinus-mongo-seed.js rename to dockerfiles/additional_files/joinus/joinus-mongo-seed.js diff --git a/scripts/dockerize/data/additional_files/joinus/joinus-neo4j-seed.cypher b/dockerfiles/additional_files/joinus/joinus-neo4j-seed.cypher similarity index 100% rename from scripts/dockerize/data/additional_files/joinus/joinus-neo4j-seed.cypher rename to dockerfiles/additional_files/joinus/joinus-neo4j-seed.cypher diff --git a/scripts/dockerize/data/additional_files/microcks/microcks-realm-sample.json b/dockerfiles/additional_files/microcks/microcks-realm-sample.json similarity index 100% rename from scripts/dockerize/data/additional_files/microcks/microcks-realm-sample.json rename to dockerfiles/additional_files/microcks/microcks-realm-sample.json diff --git a/scripts/dockerize/data/additional_files/ocvn/init_db.sql b/dockerfiles/additional_files/ocvn/init_db.sql similarity index 100% rename from scripts/dockerize/data/additional_files/ocvn/init_db.sql rename to dockerfiles/additional_files/ocvn/init_db.sql diff --git a/scripts/dockerize/data/additional_files/ohsome-api/heidelberg.mv.db b/dockerfiles/additional_files/ohsome-api/heidelberg.mv.db similarity index 100% rename from scripts/dockerize/data/additional_files/ohsome-api/heidelberg.mv.db rename to dockerfiles/additional_files/ohsome-api/heidelberg.mv.db diff --git a/scripts/dockerize/data/additional_files/pay-publicapi/em_config.yaml b/dockerfiles/additional_files/pay-publicapi/em_config.yaml similarity index 100% rename from scripts/dockerize/data/additional_files/pay-publicapi/em_config.yaml rename to dockerfiles/additional_files/pay-publicapi/em_config.yaml diff --git a/scripts/dockerize/data/additional_files/reservations-api/init.json b/dockerfiles/additional_files/reservations-api/init.json similarity index 100% rename from scripts/dockerize/data/additional_files/reservations-api/init.json rename to dockerfiles/additional_files/reservations-api/init.json diff --git a/scripts/dockerize/data/additional_files/reservations-api/mongo-init.js b/dockerfiles/additional_files/reservations-api/mongo-init.js similarity index 100% rename from scripts/dockerize/data/additional_files/reservations-api/mongo-init.js rename to dockerfiles/additional_files/reservations-api/mongo-init.js diff --git a/scripts/dockerize/data/additional_files/reservations-api/mongo_import.sh b/dockerfiles/additional_files/reservations-api/mongo_import.sh similarity index 100% rename from scripts/dockerize/data/additional_files/reservations-api/mongo_import.sh rename to dockerfiles/additional_files/reservations-api/mongo_import.sh diff --git a/scripts/dockerize/data/additional_files/scout-api/init_db.sql b/dockerfiles/additional_files/scout-api/init_db.sql similarity index 100% rename from scripts/dockerize/data/additional_files/scout-api/init_db.sql rename to dockerfiles/additional_files/scout-api/init_db.sql diff --git a/scripts/dockerize/data/additional_files/scout-api/scout_api_evomaster.yml b/dockerfiles/additional_files/scout-api/scout_api_evomaster.yml similarity index 100% rename from scripts/dockerize/data/additional_files/scout-api/scout_api_evomaster.yml rename to dockerfiles/additional_files/scout-api/scout_api_evomaster.yml diff --git a/scripts/dockerize/data/additional_files/spring-ecommerce/init.json b/dockerfiles/additional_files/spring-ecommerce/init.json similarity index 100% rename from scripts/dockerize/data/additional_files/spring-ecommerce/init.json rename to dockerfiles/additional_files/spring-ecommerce/init.json diff --git a/scripts/dockerize/data/additional_files/spring-ecommerce/mongo_import.sh b/dockerfiles/additional_files/spring-ecommerce/mongo_import.sh similarity index 100% rename from scripts/dockerize/data/additional_files/spring-ecommerce/mongo_import.sh rename to dockerfiles/additional_files/spring-ecommerce/mongo_import.sh diff --git a/scripts/dockerize/data/additional_files/swagger-petstore/inflector.yaml b/dockerfiles/additional_files/swagger-petstore/inflector.yaml similarity index 100% rename from scripts/dockerize/data/additional_files/swagger-petstore/inflector.yaml rename to dockerfiles/additional_files/swagger-petstore/inflector.yaml diff --git a/scripts/dockerize/data/additional_files/tiltaksgjennomforing/mockoauth2.json b/dockerfiles/additional_files/tiltaksgjennomforing/mockoauth2.json similarity index 100% rename from scripts/dockerize/data/additional_files/tiltaksgjennomforing/mockoauth2.json rename to dockerfiles/additional_files/tiltaksgjennomforing/mockoauth2.json diff --git a/scripts/dockerize/data/additional_files/webgoat/test.mv.db b/dockerfiles/additional_files/webgoat/test.mv.db similarity index 100% rename from scripts/dockerize/data/additional_files/webgoat/test.mv.db rename to dockerfiles/additional_files/webgoat/test.mv.db diff --git a/dockerfiles/blogapi.yaml b/dockerfiles/blogapi.yaml index 9d490a9ef..762c29f02 100644 --- a/dockerfiles/blogapi.yaml +++ b/dockerfiles/blogapi.yaml @@ -39,8 +39,8 @@ services: MYSQL_ROOT_PASSWORD: root MYSQL_DATABASE: blogapi volumes: - - ../scripts/dockerize/data/additional_files/blogapi/blogapi.sql:/docker-entrypoint-initdb.d/blogapi.sql - - ../scripts/dockerize/data/additional_files/blogapi/data.sql:/docker-entrypoint-initdb.d/data.sql + - ./additional_files/blogapi/blogapi.sql:/docker-entrypoint-initdb.d/blogapi.sql + - ./additional_files/blogapi/data.sql:/docker-entrypoint-initdb.d/data.sql healthcheck: test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost'] interval: 30s diff --git a/dockerfiles/familie-ba-sak.yaml b/dockerfiles/familie-ba-sak.yaml index 5b7e3fbc4..08c9053d7 100644 --- a/dockerfiles/familie-ba-sak.yaml +++ b/dockerfiles/familie-ba-sak.yaml @@ -43,6 +43,6 @@ services: SERVER_PORT: ${AUTH_PORT:-8081} JSON_CONFIG_PATH: /app/mockoauth2.json volumes: - - ../scripts/dockerize/data/additional_files/familie-ba-sak/mockoauth2.json:/app/mockoauth2.json + - ./additional_files/familie-ba-sak/mockoauth2.json:/app/mockoauth2.json ports: - '${AUTH_PORT:-8081}:${AUTH_PORT:-8081}' \ No newline at end of file diff --git a/dockerfiles/joinus.yaml b/dockerfiles/joinus.yaml index 5ec8ab0e2..3b965f580 100644 --- a/dockerfiles/joinus.yaml +++ b/dockerfiles/joinus.yaml @@ -36,7 +36,7 @@ services: db: image: mongo:7 volumes: - - ../scripts/dockerize/data/additional_files/joinus/joinus-mongo-seed.js:/docker-entrypoint-initdb.d/joinus-mongo-seed.js + - ./additional_files/joinus/joinus-mongo-seed.js:/docker-entrypoint-initdb.d/joinus-mongo-seed.js healthcheck: test: mongosh --quiet --eval "db.adminCommand('ping')" interval: 30s @@ -47,7 +47,7 @@ services: environment: NEO4J_AUTH: neo4j/wfdNeo4jPass123 volumes: - - ../scripts/dockerize/data/additional_files/joinus/joinus-neo4j-seed.cypher:/seed.cypher + - ./additional_files/joinus/joinus-neo4j-seed.cypher:/seed.cypher healthcheck: test: cypher-shell -u neo4j -p wfdNeo4jPass123 "MATCH (:WfdSeedComplete) RETURN 1" interval: 30s diff --git a/dockerfiles/microcks.yaml b/dockerfiles/microcks.yaml index 036be0e4d..1a4cb3a1c 100644 --- a/dockerfiles/microcks.yaml +++ b/dockerfiles/microcks.yaml @@ -43,7 +43,7 @@ services: KC_HEALTH_ENABLED: 'true' KC_METRICS_ENABLED: 'true' volumes: - - ../scripts/dockerize/data/additional_files/microcks/microcks-realm-sample.json:/opt/keycloak/data/import/microcks-realm.json + - ./additional_files/microcks/microcks-realm-sample.json:/opt/keycloak/data/import/microcks-realm.json healthcheck: test: ['CMD', 'sh', '-c', "echo -e 'GET /health/live HTTP/1.1\r\nHost: localhost\r\n\r\n' > /dev/tcp/localhost/9000"] interval: 30s diff --git a/dockerfiles/ocvn.dockerfile b/dockerfiles/ocvn.dockerfile index aea23c8ae..bf75b4c7c 100644 --- a/dockerfiles/ocvn.dockerfile +++ b/dockerfiles/ocvn.dockerfile @@ -6,7 +6,7 @@ COPY ./dist/jacocoagent.jar . -COPY ./scripts/dockerize/data/additional_files/ocvn/init_db.sql . +COPY ./dockerfiles/additional_files/ocvn/init_db.sql . diff --git a/dockerfiles/ohsome-api.dockerfile b/dockerfiles/ohsome-api.dockerfile index c49595903..f64f99c1e 100644 --- a/dockerfiles/ohsome-api.dockerfile +++ b/dockerfiles/ohsome-api.dockerfile @@ -6,7 +6,7 @@ COPY ./dist/jacocoagent.jar . -COPY ./scripts/dockerize/data/additional_files/ohsome-api/heidelberg.mv.db . +COPY ./dockerfiles/additional_files/ohsome-api/heidelberg.mv.db . diff --git a/dockerfiles/pay-publicapi.dockerfile b/dockerfiles/pay-publicapi.dockerfile index 15b9621a4..a8837b846 100644 --- a/dockerfiles/pay-publicapi.dockerfile +++ b/dockerfiles/pay-publicapi.dockerfile @@ -6,7 +6,7 @@ COPY ./dist/jacocoagent.jar . -COPY ./scripts/dockerize/data/additional_files/pay-publicapi/em_config.yaml . +COPY ./dockerfiles/additional_files/pay-publicapi/em_config.yaml . diff --git a/dockerfiles/reservations-api.yaml b/dockerfiles/reservations-api.yaml index 2e6b03a30..4cff44f12 100644 --- a/dockerfiles/reservations-api.yaml +++ b/dockerfiles/reservations-api.yaml @@ -33,7 +33,7 @@ services: tmpfs: - '/data/db' volumes: - - ../scripts/dockerize/data/additional_files/reservations-api/mongo-init.js:/docker-entrypoint-initdb.d/01-init-replica.js - - ../scripts/dockerize/data/additional_files/reservations-api/mongo_import.sh:/docker-entrypoint-initdb.d/mongo_import.sh - - ../scripts/dockerize/data/additional_files/reservations-api/init.json:/fixtures/init.json + - ./additional_files/reservations-api/mongo-init.js:/docker-entrypoint-initdb.d/01-init-replica.js + - ./additional_files/reservations-api/mongo_import.sh:/docker-entrypoint-initdb.d/mongo_import.sh + - ./additional_files/reservations-api/init.json:/fixtures/init.json command: mongod --replSet rs0 --bind_ip_all \ No newline at end of file diff --git a/dockerfiles/scout-api.dockerfile b/dockerfiles/scout-api.dockerfile index cee809ec0..ab85cc2de 100644 --- a/dockerfiles/scout-api.dockerfile +++ b/dockerfiles/scout-api.dockerfile @@ -6,9 +6,9 @@ COPY ./dist/jacocoagent.jar . -COPY ./scripts/dockerize/data/additional_files/scout-api/init_db.sql . +COPY ./dockerfiles/additional_files/scout-api/init_db.sql . -COPY ./scripts/dockerize/data/additional_files/scout-api/scout_api_evomaster.yml . +COPY ./dockerfiles/additional_files/scout-api/scout_api_evomaster.yml . diff --git a/dockerfiles/spring-ecommerce.yaml b/dockerfiles/spring-ecommerce.yaml index 758871a02..bf6718d31 100644 --- a/dockerfiles/spring-ecommerce.yaml +++ b/dockerfiles/spring-ecommerce.yaml @@ -36,8 +36,8 @@ services: MONGODB_REPLICA_SET_MODE: primary ALLOW_EMPTY_PASSWORD: yes volumes: - - ../scripts/dockerize/data/additional_files/spring-ecommerce/mongo_import.sh:/docker-entrypoint-initdb.d/mongo_import.sh - - ../scripts/dockerize/data/additional_files/spring-ecommerce/init.json:/fixtures/init.json + - ./additional_files/spring-ecommerce/mongo_import.sh:/docker-entrypoint-initdb.d/mongo_import.sh + - ./additional_files/spring-ecommerce/init.json:/fixtures/init.json redis: image: redis:7.0.11 elasticsearch: diff --git a/dockerfiles/swagger-petstore.dockerfile b/dockerfiles/swagger-petstore.dockerfile index 1da3d8a79..35152fb2d 100644 --- a/dockerfiles/swagger-petstore.dockerfile +++ b/dockerfiles/swagger-petstore.dockerfile @@ -6,7 +6,7 @@ COPY ./dist/jacocoagent.jar . -COPY ./scripts/dockerize/data/additional_files/swagger-petstore/inflector.yaml . +COPY ./dockerfiles/additional_files/swagger-petstore/inflector.yaml . diff --git a/dockerfiles/tiltaksgjennomforing.yaml b/dockerfiles/tiltaksgjennomforing.yaml index e2eab5ada..c2481a490 100644 --- a/dockerfiles/tiltaksgjennomforing.yaml +++ b/dockerfiles/tiltaksgjennomforing.yaml @@ -43,6 +43,6 @@ services: SERVER_PORT: ${AUTH_PORT:-8081} JSON_CONFIG_PATH: /app/mockoauth2.json volumes: - - ../scripts/dockerize/data/additional_files/tiltaksgjennomforing/mockoauth2.json:/app/mockoauth2.json + - ./additional_files/tiltaksgjennomforing/mockoauth2.json:/app/mockoauth2.json ports: - '${AUTH_PORT:-8081}:${AUTH_PORT:-8081}' \ No newline at end of file diff --git a/dockerfiles/webgoat.dockerfile b/dockerfiles/webgoat.dockerfile index 2a04880f7..f4db42762 100644 --- a/dockerfiles/webgoat.dockerfile +++ b/dockerfiles/webgoat.dockerfile @@ -6,7 +6,7 @@ COPY ./dist/jacocoagent.jar . -COPY ./scripts/dockerize/data/additional_files/webgoat/test.mv.db . +COPY ./dockerfiles/additional_files/webgoat/test.mv.db . diff --git a/notes_adding_suts.txt b/notes_adding_suts.txt index 965cc0a8b..19f1aae2c 100644 --- a/notes_adding_suts.txt +++ b/notes_adding_suts.txt @@ -174,7 +174,7 @@ As there are quite a few things to keep in mind, we list here the most important (eg "http://localhost:8080/v3/api-docs"). Used to fetch the schema in BB experiments. * TARGET_URL: the base URL of the running SUT, typically "http://localhost:8080". * COPY_ADDITIONAL_FILES: TRUE/FALSE. If TRUE, ALL files inside the folder - "scripts/dockerize/data/additional_files/NAME" are copied (COPY) into the working directory of the Docker image. + "dockerfiles/additional_files/NAME" are copied (COPY) into the working directory of the Docker image. This is for SUTs needing extra files at runtime next to the JAR (eg configuration files such as YAML configs). Note the folder MUST exist and MUST have the same name as the SUT (NAME), otherwise the generation fails. * DEPENDS_ON: semicolon-separated list of service names the SUT container must wait for (rendered as @@ -190,7 +190,7 @@ As there are quite a few things to keep in mind, we list here the most important - "environment": semicolon-separated list of "KEY: value" environment entries for the service (eg "POSTGRES_PASSWORD: password;POSTGRES_DB: foo"). Empty string if none. - "volume": semicolon-separated list of "host_path:container_path" mounts. Host paths here point into - "../scripts/dockerize/data/additional_files/NAME/..." (relative to the "dockerfiles" folder), eg to + "./additional_files/NAME/..." (relative to the "dockerfiles" folder), eg to provide DB init scripts ("/docker-entrypoint-initdb.d/...") or mock-server configs. Empty string if none. - "port": optional "host:container" port mapping, if the service must be reachable from outside the compose network (eg mock OAuth servers). @@ -203,7 +203,9 @@ As there are quite a few things to keep in mind, we list here the most important - if the SUT needs any extra file inside Docker (either copied into the SUT image via COPY_ADDITIONAL_FILES, or mounted as a volume of a service in SERVICES), such file must be placed under - "scripts/dockerize/data/additional_files/NAME", where NAME is exactly the same name of the SUT used in "sut.csv". + "dockerfiles/additional_files/NAME", where NAME is exactly the same name of the SUT used in "sut.csv". + Note: this folder MUST be under "dockerfiles", as that is the only folder distributed by "wfd.dockerfile". + Paths pointing outside of it would break when WFD is distributed as a Docker image. See the existing subfolders there (eg "blogapi", "pay-publicapi", "webgoat") for examples. - after updating "sut.csv" (and "statistics/data.csv"), run "scripts/createDockerFiles.py" to (re)generate diff --git a/scripts/createDockerFiles.py b/scripts/createDockerFiles.py index af39256ea..3a9a1fd45 100644 --- a/scripts/createDockerFiles.py +++ b/scripts/createDockerFiles.py @@ -8,6 +8,13 @@ SUTS_LOCATION = os.path.join(SCRIPT_LOCATION, 'dockerize/data/sut.csv') GENERATOR_LOCATION = os.path.join(SCRIPT_LOCATION, 'dockerize/docker_generator.py') +LEGACY_ADDITIONAL_FILES = os.path.join(SCRIPT_LOCATION, 'dockerize/data/additional_files') +if os.path.isdir(LEGACY_ADDITIONAL_FILES): + raise EnvironmentError( + f"'{LEGACY_ADDITIONAL_FILES}' should not exist anymore. " + "Additional files must be put under 'dockerfiles/additional_files'." + ) + PYTHON_CMD = shutil.which('python3') or shutil.which('python') if not PYTHON_CMD: raise EnvironmentError("Could not find Python interpreter") diff --git a/scripts/dockerize/data/sut.csv b/scripts/dockerize/data/sut.csv index 4c06765f7..19c19b913 100644 --- a/scripts/dockerize/data/sut.csv +++ b/scripts/dockerize/data/sut.csv @@ -1,9 +1,9 @@ NAME,Dockerized,JVM_PARAMETERS,INPUT_PARAMETERS,SWAGGER_URL,TARGET_URL,COPY_ADDITIONAL_FILES,DEPENDS_ON,SERVICES -familie-ba-sak,TRUE,-DAZUREAD_TOKEN_ENDPOINT_URL=http://fake-azure-token-endpoint.no:8080 -DAZURE_OPENID_CONFIG_TOKEN_ENDPOINT=bar -DAZURE_APP_CLIENT_ID=bar -DNAIS_APP_NAME=bar -DUNLEASH_SERVER_API_URL=http://fake-unleash-server-api.no:8080 -DUNLEASH_SERVER_API_TOKEN=bar -DBA_SAK_CLIENT_ID=some-audience,--server.port=8080 --spring.profiles.active=dev --management.server.port=-1 --server.ssl.enabled=false --spring.datasource.url=jdbc:postgresql://db:5432/familiebasak --spring.datasource.username=postgres --spring.datasource.password=password --sentry.logging.enabled=false --sentry.environment=local --funksjonsbrytere.kafka.producer.enabled=false --funksjonsbrytere.enabled=false --logging.level.root=OFF --logging.config=classpath:logback-spring.xml --logging.level.org.springframework=INFO --no.nav.security.jwt.issuer.azuread.discoveryurl=http://mock-oauth2-server:${AUTH_PORT:-8081}/azuread/.well-known/openid-configuration --prosessering.rolle=928636f4-fd0d-4149-978e-a6fb68bb19de --FAMILIE_EF_SAK_API_URL=http://fake-familie-ef-sak/api --FAMILIE_KLAGE_URL=http://fake-familie-klage --FAMILIE_BREV_API_URL=http://fake-familie-brev --FAMILIE_BA_INFOTRYGD_FEED_API_URL=http://fake-familie-ba-infotrygd-feed/api --FAMILIE_BA_INFOTRYGD_API_URL=http://fake-familie-ba-infotrygd --FAMILIE_TILBAKE_API_URL=http://fake-familie-tilbake/api --PDL_URL=http://fake-pdl-api.default --FAMILIE_INTEGRASJONER_API_URL=http://fake-familie-integrasjoner/api --FAMILIE_OPPDRAG_API_URL=http://fake-familie-oppdrag/api --SANITY_FAMILIE_API_URL=http://fake-xsrv1mh6.apicdn.sanity.io/v2021-06-07/data/query/ba-brev --ECB_API_URL=http://fake-data-api.ecb.europa.eu/service/data/EXR/ --rolle.veileder=93a26831-9866-4410-927b-74ff51a9107c --rolle.saksbehandler=d21e00a4-969d-4b28-8782-dc818abfae65 --rolle.beslutter=9449c153-5a1e-44a7-84c6-7cc7a8867233 --rolle.forvalter=c62e908a-cf20-4ad0-b7b3-3ff6ca4bf38b --rolle.kode6=5ef775f2-61f8-4283-bf3d-8d03f428aa14 --rolle.kode7=ea930b6b-9397-44d9-b9e6-f4cf527a632a,http://localhost:8080/v3/api-docs,http://localhost:8080,FALSE,"","[{""image_name"": ""postgres:13.13"", ""tmp_fs"": ""/var/lib/postgresql/data"", ""environment"": ""POSTGRES_PASSWORD: password;POSTGRES_HOST_AUTH_METHOD: trust;POSTGRES_DB: familiebasak"", ""volume"": """", ""health_check_command"": """"},{""name"":""mock-oauth2-server"",""image_name"": ""ghcr.io/navikt/mock-oauth2-server:2.0.1"", ""tmp_fs"": """", ""environment"": ""LOG_LEVEL: verbose;SERVER_PORT: ${AUTH_PORT:-8081};JSON_CONFIG_PATH: /app/mockoauth2.json"", ""volume"": ""../scripts/dockerize/data/additional_files/familie-ba-sak/mockoauth2.json:/app/mockoauth2.json"", ""port"": ""${AUTH_PORT:-8081}:${AUTH_PORT:-8081}"", ""health_check_command"": """"}]" +familie-ba-sak,TRUE,-DAZUREAD_TOKEN_ENDPOINT_URL=http://fake-azure-token-endpoint.no:8080 -DAZURE_OPENID_CONFIG_TOKEN_ENDPOINT=bar -DAZURE_APP_CLIENT_ID=bar -DNAIS_APP_NAME=bar -DUNLEASH_SERVER_API_URL=http://fake-unleash-server-api.no:8080 -DUNLEASH_SERVER_API_TOKEN=bar -DBA_SAK_CLIENT_ID=some-audience,--server.port=8080 --spring.profiles.active=dev --management.server.port=-1 --server.ssl.enabled=false --spring.datasource.url=jdbc:postgresql://db:5432/familiebasak --spring.datasource.username=postgres --spring.datasource.password=password --sentry.logging.enabled=false --sentry.environment=local --funksjonsbrytere.kafka.producer.enabled=false --funksjonsbrytere.enabled=false --logging.level.root=OFF --logging.config=classpath:logback-spring.xml --logging.level.org.springframework=INFO --no.nav.security.jwt.issuer.azuread.discoveryurl=http://mock-oauth2-server:${AUTH_PORT:-8081}/azuread/.well-known/openid-configuration --prosessering.rolle=928636f4-fd0d-4149-978e-a6fb68bb19de --FAMILIE_EF_SAK_API_URL=http://fake-familie-ef-sak/api --FAMILIE_KLAGE_URL=http://fake-familie-klage --FAMILIE_BREV_API_URL=http://fake-familie-brev --FAMILIE_BA_INFOTRYGD_FEED_API_URL=http://fake-familie-ba-infotrygd-feed/api --FAMILIE_BA_INFOTRYGD_API_URL=http://fake-familie-ba-infotrygd --FAMILIE_TILBAKE_API_URL=http://fake-familie-tilbake/api --PDL_URL=http://fake-pdl-api.default --FAMILIE_INTEGRASJONER_API_URL=http://fake-familie-integrasjoner/api --FAMILIE_OPPDRAG_API_URL=http://fake-familie-oppdrag/api --SANITY_FAMILIE_API_URL=http://fake-xsrv1mh6.apicdn.sanity.io/v2021-06-07/data/query/ba-brev --ECB_API_URL=http://fake-data-api.ecb.europa.eu/service/data/EXR/ --rolle.veileder=93a26831-9866-4410-927b-74ff51a9107c --rolle.saksbehandler=d21e00a4-969d-4b28-8782-dc818abfae65 --rolle.beslutter=9449c153-5a1e-44a7-84c6-7cc7a8867233 --rolle.forvalter=c62e908a-cf20-4ad0-b7b3-3ff6ca4bf38b --rolle.kode6=5ef775f2-61f8-4283-bf3d-8d03f428aa14 --rolle.kode7=ea930b6b-9397-44d9-b9e6-f4cf527a632a,http://localhost:8080/v3/api-docs,http://localhost:8080,FALSE,"","[{""image_name"": ""postgres:13.13"", ""tmp_fs"": ""/var/lib/postgresql/data"", ""environment"": ""POSTGRES_PASSWORD: password;POSTGRES_HOST_AUTH_METHOD: trust;POSTGRES_DB: familiebasak"", ""volume"": """", ""health_check_command"": """"},{""name"":""mock-oauth2-server"",""image_name"": ""ghcr.io/navikt/mock-oauth2-server:2.0.1"", ""tmp_fs"": """", ""environment"": ""LOG_LEVEL: verbose;SERVER_PORT: ${AUTH_PORT:-8081};JSON_CONFIG_PATH: /app/mockoauth2.json"", ""volume"": ""./additional_files/familie-ba-sak/mockoauth2.json:/app/mockoauth2.json"", ""port"": ""${AUTH_PORT:-8081}:${AUTH_PORT:-8081}"", ""health_check_command"": """"}]" pay-publicapi,TRUE,-Ddw.server.applicationConnectors[0].port=8080 -Ddw.server.adminConnectors[0].port=0 -Ddw.redis.endpoint=db:6379,server em_config.yaml,http://localhost:8080/assets/swagger.json,http://localhost:8080,TRUE,"","[{""image_name"": ""redis:7.2.3"", ""tmp_fs"": """", ""environment"": """", ""volume"": """", ""health_check_command"": """"}]" session-service,TRUE,"",--server.port=8080 --spring.data.mongodb.uri=mongodb://db:27017/mongo_db --spring.cache.type=NONE,http://localhost:8080/v2/api-docs,http://localhost:8080,FALSE,"","[{""image_name"": ""mongo:6.0"", ""tmp_fs"": ""/data/db"", ""environment"": """", ""volume"": """", ""health_check_command"": """"}]" bibliothek,TRUE,"",--server.port=8080 --databaseUrl=mongodb://db:27017/mongo_db --spring.data.mongodb.uri=mongodb://db:27017/mongo_db --app.storagePath=./tmp/bibliothek/,http://localhost:8080/openapi,http://localhost:8080,FALSE,"","[{""image_name"": ""mongo:6"", ""tmp_fs"": ""/data/db"", ""environment"": """", ""volume"": """", ""health_check_command"": """"}]" -reservations-api,TRUE,-Dfile.encoding=ISO-8859-1,--server.port=8080 --databaseUrl=mongodb://db:27017/mongo_db --spring.data.mongodb.uri=mongodb://db:27017/mongo_db --app.jwt.secret=abcdef012345678901234567890123456789abcdef012345678901234567890123456789,http://localhost:8080/v3/api-docs,http://localhost:8080,FALSE,"","[{""image_name"": ""mongo:4.4"", ""tmp_fs"": ""/data/db"", ""environment"": """", ""command"": ""mongod --replSet rs0 --bind_ip_all"", ""volume"": ""../scripts/dockerize/data/additional_files/reservations-api/mongo-init.js:/docker-entrypoint-initdb.d/01-init-replica.js;../scripts/dockerize/data/additional_files/reservations-api/mongo_import.sh:/docker-entrypoint-initdb.d/mongo_import.sh;../scripts/dockerize/data/additional_files/reservations-api/init.json:/fixtures/init.json"", ""health_check_command"": """"}]" +reservations-api,TRUE,-Dfile.encoding=ISO-8859-1,--server.port=8080 --databaseUrl=mongodb://db:27017/mongo_db --spring.data.mongodb.uri=mongodb://db:27017/mongo_db --app.jwt.secret=abcdef012345678901234567890123456789abcdef012345678901234567890123456789,http://localhost:8080/v3/api-docs,http://localhost:8080,FALSE,"","[{""image_name"": ""mongo:4.4"", ""tmp_fs"": ""/data/db"", ""environment"": """", ""command"": ""mongod --replSet rs0 --bind_ip_all"", ""volume"": ""./additional_files/reservations-api/mongo-init.js:/docker-entrypoint-initdb.d/01-init-replica.js;./additional_files/reservations-api/mongo_import.sh:/docker-entrypoint-initdb.d/mongo_import.sh;./additional_files/reservations-api/init.json:/fixtures/init.json"", ""health_check_command"": """"}]" catwatch,TRUE,-Dserver.port=8080 -Dspring.datasource.url=jdbc:h2:mem:testdb -Dspring.jpa.database-platform=org.hibernate.dialect.H2Dialect -Dspring.datasource.username=sa -Dspring.datasource.password,"",http://localhost:8080/v2/api-docs,http://localhost:8080,FALSE,"", cwa-verification,TRUE,-Dspring.datasource.url=jdbc:h2:mem:testdb -Dspring.datasource.driver-class-name=org.h2.Driver -Dspring.datasource.username=sa -Dspring.datasource.password,"--server.port=8080 --spring.profiles.active=local,external,internal --management.server.port=-1 --server.ssl.enabled=false --cwa-testresult-server.url=http://cwa-testresult-server:8088",http://localhost:8080/api-docs.json,http://localhost:8080,FALSE,"", features-service,TRUE,-Dspring.datasource.url=jdbc:h2:mem:testdb -Dspring.jpa.database-platform=org.hibernate.dialect.H2Dialect -Dspring.datasource.username=sa -Dspring.datasource.password,--server.port=8080,http://localhost:8080/swagger.json,http://localhost:8080,FALSE,"", @@ -18,12 +18,12 @@ restcountries,TRUE,"",--server.port=8080,http://localhost:8080/openapi.yaml,http scout-api,TRUE,"",server scout_api_evomaster.yml,http://localhost:8080/api/swagger.json,http://localhost:8080,TRUE,"", genome-nexus,TRUE,"",--server.port=8080 --spring.data.mongodb.uri=mongodb://db:27017/mongo_db --spring.cache.type=NONE,http://localhost:8080/v2/api-docs,http://localhost:8080,FALSE,"","[{""image_name"": ""mongo:3.6.2"", ""tmp_fs"": ""/data/db"", ""environment"": """", ""volume"": """", ""health_check_command"": """", ""platform"": ""linux/amd64""}]" market,TRUE,"-Dspring.datasource.url=""jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1"" -Dspring.datasource.username=sa -Dspring.datasource.password",--server.port=8080,http://localhost:8080/v2/api-docs,http://localhost:8080,FALSE,"", -blogapi,TRUE,"","--server.port=8080 --spring.datasource.url=""jdbc:mysql://db:3306/blogapi?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true""",http://localhost:8080/blogapi.json,http://localhost:8080,FALSE,"db","[{""image_name"": ""mysql:8.0"", ""tmp_fs"": ""/var/lib/mysql"", ""environment"": ""MYSQL_ROOT_PASSWORD: root;MYSQL_DATABASE: blogapi"", ""volume"": ""../scripts/dockerize/data/additional_files/blogapi/blogapi.sql:/docker-entrypoint-initdb.d/blogapi.sql;../scripts/dockerize/data/additional_files/blogapi/data.sql:/docker-entrypoint-initdb.d/data.sql"", ""health_check_command"": [""CMD"", ""mysqladmin"", ""ping"", ""-h"", ""localhost""]}]" +blogapi,TRUE,"","--server.port=8080 --spring.datasource.url=""jdbc:mysql://db:3306/blogapi?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true""",http://localhost:8080/blogapi.json,http://localhost:8080,FALSE,"db","[{""image_name"": ""mysql:8.0"", ""tmp_fs"": ""/var/lib/mysql"", ""environment"": ""MYSQL_ROOT_PASSWORD: root;MYSQL_DATABASE: blogapi"", ""volume"": ""./additional_files/blogapi/blogapi.sql:/docker-entrypoint-initdb.d/blogapi.sql;./additional_files/blogapi/data.sql:/docker-entrypoint-initdb.d/data.sql"", ""health_check_command"": [""CMD"", ""mysqladmin"", ""ping"", ""-h"", ""localhost""]}]" user-management,TRUE,"","--server.port=8080 --spring.datasource.url=""jdbc:mysql://db:3306/users?useSSL=false&allowPublicKeyRetrieval=true""",http://localhost:8080/v2/api-docs,http://localhost:8080,FALSE,"db","[{""image_name"": ""mysql:8.0"", ""tmp_fs"": ""/var/lib/mysql"", ""environment"": ""MYSQL_ROOT_PASSWORD: root;MYSQL_DATABASE: users"", ""volume"": """", ""health_check_command"": [""CMD"", ""mysqladmin"", ""ping"", ""-h"", ""localhost""]}]" youtube-mock,TRUE,"",--server.port=8080,http://localhost:8080/swagger.yaml,http://localhost:8080,FALSE,"", person-controller,TRUE,"",--server.port=8080 --spring.data.mongodb.uri=mongodb://db:27017 --spring.cache.type=None,http://localhost:8080/v3/api-docs,http://localhost:8080,FALSE,"","[{""image_name"": ""mongo:7.0"", ""tmp_fs"": ""/data/db"", ""environment"": """", ""volume"": """", ""health_check_command"": """"}]" tracking-system,TRUE,"","--server.port=8080 --spring.profiles.active=dev --spring.datasource.url=""jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1"" --spring.datasource.username=sa --spring.datasource.password",http://localhost:8080/app/v2/api-docs,http://localhost:8080,FALSE,"", -tiltaksgjennomforing,TRUE,"",--server.port=8080 --spring.profiles.active=dev-gcp-labs --spring.datasource.driverClassName=org.postgresql.Driver --spring.sql.init.platform=postgres --no.nav.security.jwt.issuer.aad.discoveryurl=http://mock-oauth2-server:${AUTH_PORT:-8081}/aad/.well-known/openid-configuration --no.nav.security.jwt.issuer.aad.accepted_audience=aad --no.nav.security.jwt.issuer.system.discoveryurl=http://mock-oauth2-server:${AUTH_PORT:-8081}/system/.well-known/openid-configuration --no.nav.security.jwt.issuer.system.accepted_audience=system --no.nav.security.jwt.issuer.tokenx.discoveryurl=http://mock-oauth2-server:${AUTH_PORT:-8081}/tokenx/.well-known/openid-configuration --no.nav.security.jwt.issuer.tokenx.accepted_audience=tokenx --management.server.port=-1 --server.ssl.enabled=false --spring.datasource.url=jdbc:postgresql://db:5432/tiltaksgjennomforing --spring.datasource.username=postgres --spring.datasource.password=password --sentry.logging.enabled=false --sentry.environment=local --logging.level.root=OFF --logging.config=classpath:logback-spring.xml --logging.level.org.springframework=INFO,http://localhost:8080/tiltaksgjennomforing-api/v3/api-docs,http://localhost:8080,FALSE,"","[{""image_name"": ""postgres:13.13"", ""tmp_fs"": ""/var/lib/postgresql/data"", ""environment"": ""POSTGRES_PASSWORD: password;POSTGRES_HOST_AUTH_METHOD: trust;POSTGRES_DB: tiltaksgjennomforing"", ""volume"": """", ""health_check_command"": """"},{""name"":""mock-oauth2-server"",""image_name"": ""ghcr.io/navikt/mock-oauth2-server:2.0.1"", ""tmp_fs"": """", ""environment"": ""LOG_LEVEL: verbose;SERVER_PORT: ${AUTH_PORT:-8081};JSON_CONFIG_PATH: /app/mockoauth2.json"", ""volume"": ""../scripts/dockerize/data/additional_files/tiltaksgjennomforing/mockoauth2.json:/app/mockoauth2.json"", ""port"": ""${AUTH_PORT:-8081}:${AUTH_PORT:-8081}"", ""health_check_command"": """"}]" +tiltaksgjennomforing,TRUE,"",--server.port=8080 --spring.profiles.active=dev-gcp-labs --spring.datasource.driverClassName=org.postgresql.Driver --spring.sql.init.platform=postgres --no.nav.security.jwt.issuer.aad.discoveryurl=http://mock-oauth2-server:${AUTH_PORT:-8081}/aad/.well-known/openid-configuration --no.nav.security.jwt.issuer.aad.accepted_audience=aad --no.nav.security.jwt.issuer.system.discoveryurl=http://mock-oauth2-server:${AUTH_PORT:-8081}/system/.well-known/openid-configuration --no.nav.security.jwt.issuer.system.accepted_audience=system --no.nav.security.jwt.issuer.tokenx.discoveryurl=http://mock-oauth2-server:${AUTH_PORT:-8081}/tokenx/.well-known/openid-configuration --no.nav.security.jwt.issuer.tokenx.accepted_audience=tokenx --management.server.port=-1 --server.ssl.enabled=false --spring.datasource.url=jdbc:postgresql://db:5432/tiltaksgjennomforing --spring.datasource.username=postgres --spring.datasource.password=password --sentry.logging.enabled=false --sentry.environment=local --logging.level.root=OFF --logging.config=classpath:logback-spring.xml --logging.level.org.springframework=INFO,http://localhost:8080/tiltaksgjennomforing-api/v3/api-docs,http://localhost:8080,FALSE,"","[{""image_name"": ""postgres:13.13"", ""tmp_fs"": ""/var/lib/postgresql/data"", ""environment"": ""POSTGRES_PASSWORD: password;POSTGRES_HOST_AUTH_METHOD: trust;POSTGRES_DB: tiltaksgjennomforing"", ""volume"": """", ""health_check_command"": """"},{""name"":""mock-oauth2-server"",""image_name"": ""ghcr.io/navikt/mock-oauth2-server:2.0.1"", ""tmp_fs"": """", ""environment"": ""LOG_LEVEL: verbose;SERVER_PORT: ${AUTH_PORT:-8081};JSON_CONFIG_PATH: /app/mockoauth2.json"", ""volume"": ""./additional_files/tiltaksgjennomforing/mockoauth2.json:/app/mockoauth2.json"", ""port"": ""${AUTH_PORT:-8081}:${AUTH_PORT:-8081}"", ""health_check_command"": """"}]" ohsome-api,TRUE,"",--server.port=8080 --database.db=heidelberg,http:///localhost:8080/docs?group=Data%20Aggregation,http://localhost:8080,TRUE,"", spring-batch-rest,TRUE,"",--server.port=8080 --spring.batch.job.enabled=false --lastNamePrefix= --upperCase=false,http://localhost:8080/v3/api-docs,http://localhost:8080,FALSE,"", spring-rest-example,TRUE,"","--server.port=8080 --spring.datasource.username=root --spring.datasource.password=root --spring.datasource.url=""jdbc:mysql://db:3306/example?useSSL=false&allowPublicKeyRetrieval=true""",http://localhost:8080/v3/api-docs,http://localhost:8080,FALSE,"db","[{""image_name"": ""mysql:8.0"", ""tmp_fs"": ""/var/lib/mysql"", ""environment"": ""MYSQL_ROOT_PASSWORD: root;MYSQL_DATABASE: example"", ""volume"": """", ""health_check_command"": [""CMD"", ""mysqladmin"", ""ping"", ""-h"", ""localhost""]}]" @@ -32,10 +32,10 @@ spring-actuator-demo,TRUE,"",--server.port=8080,http://localhost:8080/v3/api-doc webgoat,TRUE,-Drunning.in.docker=true,"--webgoat.port=8080 --webwolf.port=8081 --server.address=""0.0.0.0"" --spring.profiles.active=dev --spring.datasource.driver-class-name=org.h2.Driver --spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect --spring.jpa.properties.jakarta.persistence.schema-generation.scripts.action=none --spring.sql.init.mode=never --spring.datasource.url=""jdbc:h2:file:./test"" --spring.datasource.username=sa --spring.datasource.password",http://localhost:8080/WebGoat/v3/api-docs,http://localhost:8080,TRUE,"", swagger-petstore,TRUE,"",8080,http://localhost:8080/api/v3/openapi.json,http://localhost:8080,TRUE,"", http-patch-spring,TRUE,"",--server.port=8080,http://localhost:8080/v3/api-docs,http://localhost:8080,FALSE,"", -spring-ecommerce,TRUE,-Dfile.encoding=ISO-8859-1,--server.port=8080 --spring.datasource.host=mongodb --spring.datasource.port=27017 --spring.datasource.database=test --spring.data.mongodb.uri=mongodb://mongodb:27017/test --spring.redis.host=redis --spring.redis.port=6379 --spring.data.elasticsearch.cluster-name=elasticsearch --spring.data.elasticsearch.cluster-nodes=elasticsearch:9300 --spring.elasticsearch.rest.uris=elasticsearch:9200 --spring.data.elasticsearch.host=elasticsearch --spring.data.elasticsearch.port=9300 --spring.cache.type=NONE,http://localhost:8080/v2/api-docs,http://localhost:8080,FALSE,"","[{""name"": ""mongodb"", ""image_name"": ""mongo:7.0"", ""tmp_fs"": ""/data/db"", ""environment"": ""MONGODB_REPLICA_SET_MODE: primary;ALLOW_EMPTY_PASSWORD: yes"", ""volume"": ""../scripts/dockerize/data/additional_files/spring-ecommerce/mongo_import.sh:/docker-entrypoint-initdb.d/mongo_import.sh;../scripts/dockerize/data/additional_files/spring-ecommerce/init.json:/fixtures/init.json"", ""health_check_command"": """"}, {""name"": ""redis"", ""image_name"": ""redis:7.0.11"", ""tmp_fs"": """", ""environment"": """", ""volume"": """", ""health_check_command"": """"}, {""name"": ""elasticsearch"",""image_name"": ""docker.elastic.co/elasticsearch/elasticsearch:6.8.23"", ""tmp_fs"": ""/usr/share/elasticsearch/data"", ""environment"": ""- discovery.type=single-node;- cluster.name=elasticsearch;- ES_JAVA_OPTS=-Xms512m -Xmx512m;- xpack.security.enabled=false"", ""volume"": """", ""health_check_command"": """"}]" +spring-ecommerce,TRUE,-Dfile.encoding=ISO-8859-1,--server.port=8080 --spring.datasource.host=mongodb --spring.datasource.port=27017 --spring.datasource.database=test --spring.data.mongodb.uri=mongodb://mongodb:27017/test --spring.redis.host=redis --spring.redis.port=6379 --spring.data.elasticsearch.cluster-name=elasticsearch --spring.data.elasticsearch.cluster-nodes=elasticsearch:9300 --spring.elasticsearch.rest.uris=elasticsearch:9200 --spring.data.elasticsearch.host=elasticsearch --spring.data.elasticsearch.port=9300 --spring.cache.type=NONE,http://localhost:8080/v2/api-docs,http://localhost:8080,FALSE,"","[{""name"": ""mongodb"", ""image_name"": ""mongo:7.0"", ""tmp_fs"": ""/data/db"", ""environment"": ""MONGODB_REPLICA_SET_MODE: primary;ALLOW_EMPTY_PASSWORD: yes"", ""volume"": ""./additional_files/spring-ecommerce/mongo_import.sh:/docker-entrypoint-initdb.d/mongo_import.sh;./additional_files/spring-ecommerce/init.json:/fixtures/init.json"", ""health_check_command"": """"}, {""name"": ""redis"", ""image_name"": ""redis:7.0.11"", ""tmp_fs"": """", ""environment"": """", ""volume"": """", ""health_check_command"": """"}, {""name"": ""elasticsearch"",""image_name"": ""docker.elastic.co/elasticsearch/elasticsearch:6.8.23"", ""tmp_fs"": ""/usr/share/elasticsearch/data"", ""environment"": ""- discovery.type=single-node;- cluster.name=elasticsearch;- ES_JAVA_OPTS=-Xms512m -Xmx512m;- xpack.security.enabled=false"", ""volume"": """", ""health_check_command"": """"}]" quartz-manager,TRUE,,--server.port=8080 --quartz-manager.security.accounts.in-memory.users[0].username=foo --quartz-manager.security.accounts.in-memory.users[0].password=bar --quartz-manager.security.accounts.in-memory.users[0].roles[0]=admin --quartz-manager.security.accounts.in-memory.users[1].username=foo2 --quartz-manager.security.accounts.in-memory.users[1].password=bar --quartz-manager.security.accounts.in-memory.users[1].roles[0]=admin,http://localhost:8080/v3/api-docs,http://localhost:8080,FALSE,"", -microcks,TRUE,-DPOSTMAN_RUNNER_URL=http://postman:3000 -DSERVICES_UPDATE_INTERVAL='0 0 0/2 * * *' -DKEYCLOAK_URL=http://keycloak:8080 -DKEYCLOAK_PUBLIC_URL=http://localhost:${AUTH_PORT:-8081} -DENABLE_CORS_POLICY=false -DCORS_REST_ALLOW_CREDENTIALS=true -DTEST_CALLBACK_URL=http://localhost:${HOST_PORT:-8080},--server.port=8080 --spring.profiles.active=prod --grpc.server.port=0 --spring.data.mongodb.uri=mongodb://mongodb:27017/test --spring.security.oauth2.resourceserver.jwt.issuer-uri=http://localhost:${AUTH_PORT:-8081}/realms/microcks --spring.security.oauth2.resourceserver.jwt.jwk-set-uri=http://keycloak:8080/realms/microcks/protocol/openid-connect/certs,http://localhost:8080/v3/api-docs,http://localhost:8080,FALSE,"","[{""name"": ""mongodb"", ""image_name"": ""mongo:7.0"", ""tmp_fs"": ""/data/db"", ""environment"": ""MONGODB_REPLICA_SET_MODE: primary;ALLOW_EMPTY_PASSWORD: yes"", ""volume"": """", ""health_check_command"": """"},{""name"": ""keycloak"",""image_name"": ""quay.io/keycloak/keycloak:26.0.0"", ""command"":[""start-dev"", ""--hostname=http://localhost:${AUTH_PORT:-8081}"", ""--import-realm"", ""--health-enabled=true""], ""port"": ""${AUTH_PORT:-8081}:8080"", ""tmp_fs"": """", ""environment"": ""KEYCLOAK_ADMIN: 'admin';KEYCLOAK_ADMIN_PASSWORD: 'admin';KC_HEALTH_ENABLED: 'true';KC_METRICS_ENABLED: 'true'"", ""volume"": ""../scripts/dockerize/data/additional_files/microcks/microcks-realm-sample.json:/opt/keycloak/data/import/microcks-realm.json"", ""health_check_command"": [""CMD"", ""sh"", ""-c"", ""echo -e 'GET /health/live HTTP/1.1\r\nHost: localhost\r\n\r\n' > /dev/tcp/localhost/9000""]},{""name"": ""postman"", ""image_name"": ""quay.io/microcks/microcks-postman-runtime:0.6.0"", ""tmp_fs"": """", ""environment"": """", ""volume"": """", ""health_check_command"": [""CMD"", ""curl"", ""-f"", ""http://localhost:3000/health""]}]" +microcks,TRUE,-DPOSTMAN_RUNNER_URL=http://postman:3000 -DSERVICES_UPDATE_INTERVAL='0 0 0/2 * * *' -DKEYCLOAK_URL=http://keycloak:8080 -DKEYCLOAK_PUBLIC_URL=http://localhost:${AUTH_PORT:-8081} -DENABLE_CORS_POLICY=false -DCORS_REST_ALLOW_CREDENTIALS=true -DTEST_CALLBACK_URL=http://localhost:${HOST_PORT:-8080},--server.port=8080 --spring.profiles.active=prod --grpc.server.port=0 --spring.data.mongodb.uri=mongodb://mongodb:27017/test --spring.security.oauth2.resourceserver.jwt.issuer-uri=http://localhost:${AUTH_PORT:-8081}/realms/microcks --spring.security.oauth2.resourceserver.jwt.jwk-set-uri=http://keycloak:8080/realms/microcks/protocol/openid-connect/certs,http://localhost:8080/v3/api-docs,http://localhost:8080,FALSE,"","[{""name"": ""mongodb"", ""image_name"": ""mongo:7.0"", ""tmp_fs"": ""/data/db"", ""environment"": ""MONGODB_REPLICA_SET_MODE: primary;ALLOW_EMPTY_PASSWORD: yes"", ""volume"": """", ""health_check_command"": """"},{""name"": ""keycloak"",""image_name"": ""quay.io/keycloak/keycloak:26.0.0"", ""command"":[""start-dev"", ""--hostname=http://localhost:${AUTH_PORT:-8081}"", ""--import-realm"", ""--health-enabled=true""], ""port"": ""${AUTH_PORT:-8081}:8080"", ""tmp_fs"": """", ""environment"": ""KEYCLOAK_ADMIN: 'admin';KEYCLOAK_ADMIN_PASSWORD: 'admin';KC_HEALTH_ENABLED: 'true';KC_METRICS_ENABLED: 'true'"", ""volume"": ""./additional_files/microcks/microcks-realm-sample.json:/opt/keycloak/data/import/microcks-realm.json"", ""health_check_command"": [""CMD"", ""sh"", ""-c"", ""echo -e 'GET /health/live HTTP/1.1\r\nHost: localhost\r\n\r\n' > /dev/tcp/localhost/9000""]},{""name"": ""postman"", ""image_name"": ""quay.io/microcks/microcks-postman-runtime:0.6.0"", ""tmp_fs"": """", ""environment"": """", ""volume"": """", ""health_check_command"": [""CMD"", ""curl"", ""-f"", ""http://localhost:3000/health""]}]" commafeed,TRUE,"-Dquarkus.http.port=8080 -Dquarkus.datasource.db-kind=h2 -Dquarkus.datasource.jdbc.url=""jdbc:h2:mem:commafeed;DB_CLOSE_DELAY=-1"" -Dquarkus.datasource.username=sa -Dquarkus.datasource.password=sa","",http://localhost:8080/openapi?format=json,http://localhost:8080,FALSE,"","" jasper,TRUE,,--server.port=8080 --spring.profiles.active=api-docs --spring.datasource.url=jdbc:postgresql://db:5432/jasper --spring.datasource.username=postgres --spring.datasource.password=password --spring.datasource.hikari.auto-commit=false --spring.jpa.database-platform=jasper.config.PostgreSQLDialect --springdoc.api-docs.path=/api/v3/api-docs --jasper.allow-user-tag-header=true --jasper.allow-user-role-header=true --jasper.allow-auth-headers=true,http://localhost:8080/api/v3/api-docs/jasper,http://localhost:8080,FALSE,,"[{""image_name"": ""postgres:18"", ""tmp_fs"": ""/var/lib/postgresql"", ""environment"": ""POSTGRES_PASSWORD: password;POSTGRES_HOST_AUTH_METHOD: trust;POSTGRES_DB: jasper"", ""volume"": """", ""health_check_command"": """"}]" redis-sample,TRUE,"",--server.port=8080 --spring.data.redis.host=db --spring.data.redis.port=6379 --spring.data.redis.password=53cret --spring.autoconfigure.exclude=org.springframework.boot.security.autoconfigure.web.servlet.ServletWebSecurityAutoConfiguration --app.numberOfRatings=5000 --app.ratingStars=5,http://localhost:8080/v3/api-docs,http://localhost:8080,FALSE,"","[{""image_name"": ""redis:7.4-alpine"", ""tmp_fs"": """", ""environment"": """", ""volume"": """", ""health_check_command"": """", ""command"": ""redis-server --requirepass 53cret""}]" -joinus,TRUE,,--server.port=8080 --spring.mongodb.uri=mongodb://db:27017/joinUs --spring.neo4j.uri=bolt://neo4j:7687 --spring.neo4j.authentication.username=neo4j --spring.neo4j.authentication.password=wfdNeo4jPass123 --logging.level.org.mongodb.driver=INFO --logging.level.org.neo4j.driver=INFO --logging.level.org.springframework.security=INFO,http://localhost:8080/v3/api-docs,http://localhost:8080,FALSE,db;neo4j,"[{""image_name"": ""mongo:7"", ""tmp_fs"": """", ""environment"": """", ""volume"": ""../scripts/dockerize/data/additional_files/joinus/joinus-mongo-seed.js:/docker-entrypoint-initdb.d/joinus-mongo-seed.js"", ""health_check_command"": ""mongosh --quiet --eval \""db.adminCommand('ping')\""""}, {""name"": ""neo4j"", ""image_name"": ""neo4j:5.26"", ""tmp_fs"": """", ""environment"": ""NEO4J_AUTH: neo4j/wfdNeo4jPass123"", ""volume"": ""../scripts/dockerize/data/additional_files/joinus/joinus-neo4j-seed.cypher:/seed.cypher"", ""health_check_command"": ""cypher-shell -u neo4j -p wfdNeo4jPass123 \""MATCH (:WfdSeedComplete) RETURN 1\"""", ""command"": ""[\""bash\"", \""-c\"", '/startup/docker-entrypoint.sh neo4j & pid=$!; until cypher-shell -u neo4j -p wfdNeo4jPass123 \""RETURN 1\"" >/dev/null 2>&1; do sleep 2; done; cypher-shell -u neo4j -p wfdNeo4jPass123 -f /seed.cypher; cypher-shell -u neo4j -p wfdNeo4jPass123 \""CREATE (:WfdSeedComplete)\""; wait $pid']""}]" +joinus,TRUE,,--server.port=8080 --spring.mongodb.uri=mongodb://db:27017/joinUs --spring.neo4j.uri=bolt://neo4j:7687 --spring.neo4j.authentication.username=neo4j --spring.neo4j.authentication.password=wfdNeo4jPass123 --logging.level.org.mongodb.driver=INFO --logging.level.org.neo4j.driver=INFO --logging.level.org.springframework.security=INFO,http://localhost:8080/v3/api-docs,http://localhost:8080,FALSE,db;neo4j,"[{""image_name"": ""mongo:7"", ""tmp_fs"": """", ""environment"": """", ""volume"": ""./additional_files/joinus/joinus-mongo-seed.js:/docker-entrypoint-initdb.d/joinus-mongo-seed.js"", ""health_check_command"": ""mongosh --quiet --eval \""db.adminCommand('ping')\""""}, {""name"": ""neo4j"", ""image_name"": ""neo4j:5.26"", ""tmp_fs"": """", ""environment"": ""NEO4J_AUTH: neo4j/wfdNeo4jPass123"", ""volume"": ""./additional_files/joinus/joinus-neo4j-seed.cypher:/seed.cypher"", ""health_check_command"": ""cypher-shell -u neo4j -p wfdNeo4jPass123 \""MATCH (:WfdSeedComplete) RETURN 1\"""", ""command"": ""[\""bash\"", \""-c\"", '/startup/docker-entrypoint.sh neo4j & pid=$!; until cypher-shell -u neo4j -p wfdNeo4jPass123 \""RETURN 1\"" >/dev/null 2>&1; do sleep 2; done; cypher-shell -u neo4j -p wfdNeo4jPass123 -f /seed.cypher; cypher-shell -u neo4j -p wfdNeo4jPass123 \""CREATE (:WfdSeedComplete)\""; wait $pid']""}]" diff --git a/scripts/dockerize/docker_generator.py b/scripts/dockerize/docker_generator.py index 92c885229..a34bd0fb5 100644 --- a/scripts/dockerize/docker_generator.py +++ b/scripts/dockerize/docker_generator.py @@ -92,9 +92,9 @@ def get_base_image(self, jdk_version): def generate_dockerfiles(self): base_image = self.get_base_image(self.jdk_version) - save_folder_path = f"./scripts/dockerize/data/additional_files/{self.sut_name}" + save_folder_path = f"./dockerfiles/additional_files/{self.sut_name}" files = [] - folder_name = os.path.join(self.SCRIPT_LOCATION, f"./data/additional_files/{self.sut_name}") + folder_name = os.path.join(self.DOCKER_FILE_FOLDER, f"additional_files/{self.sut_name}") if self.copy_additional_files: file_list = os.listdir(folder_name) for file in file_list: