Skip to content

Commit

Permalink
test(smoketest): add Spring Boot test applications (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores authored Oct 21, 2024
1 parent bed183d commit a2c0ed0
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
29 changes: 29 additions & 0 deletions compose/sample_apps/spring-boot-2-7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: "3"
services:
spring-boot-2-7:
depends_on:
cryostat:
condition: service_healthy
image: ${SPRING_BOOT_27_TEST_IMAGE:-quay.io/redhat-java-monitoring/spring-boot-2.7-cryostat-agent:latest}
hostname: spring-boot-2-7
ports:
- "7000"
- "9590"
environment:
JAVA_OPTS_APPEND: -Dcom.sun.management.jmxremote.port=7000 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -javaagent:/opt/cryostat/cryostat-agent.jar
CRYOSTAT_AGENT_APP_NAME: spring-boot-2-7
CRYOSTAT_AGENT_WEBSERVER_HOST: spring-boot-2-7
CRYOSTAT_AGENT_WEBSERVER_PORT: 9590
CRYOSTAT_AGENT_CALLBACK: http://spring-boot-2-7:9590/
CRYOSTAT_AGENT_BASEURI: ${CRYOSTAT_PROXY_PROTOCOL}://${CRYOSTAT_HTTP_HOST}:${CRYOSTAT_PROXY_PORT}/
CRYOSTAT_AGENT_BASEURI_RANGE: public
CRYOSTAT_AGENT_WEBCLIENT_TLS_TRUST_ALL: "true"
CRYOSTAT_AGENT_WEBCLIENT_TLS_VERIFY_HOSTNAME: "false"
CRYOSTAT_AGENT_AUTHORIZATION_TYPE: basic
CRYOSTAT_AGENT_AUTHORIZATION_VALUE: user:pass
CRYOSTAT_AGENT_API_WRITES_ENABLED: "true"
CRYOSTAT_AGENT_HARVESTER_TEMPLATE: Profiling
CRYOSTAT_AGENT_HARVESTER_PERIOD_MS: 300000
CRYOSTAT_AGENT_HARVESTER_MAX_FILES: 3
CRYOSTAT_AGENT_HARVESTER_EXIT_MAX_AGE_MS: 60000
CRYOSTAT_AGENT_HARVESTER_EXIT_MAX_SIZE_B: 153600 # "$(echo 1024*150 | bc)"
29 changes: 29 additions & 0 deletions compose/sample_apps/spring-boot-3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: "3"
services:
spring-boot-3:
depends_on:
cryostat:
condition: service_healthy
image: ${SPRING_BOOT_3_TEST_IMAGE:-quay.io/redhat-java-monitoring/spring-boot-3-cryostat-agent:latest}
hostname: spring-boot-3
ports:
- "7001"
- "9591"
environment:
JAVA_OPTS_APPEND: -Dcom.sun.management.jmxremote.port=7001 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -javaagent:/opt/cryostat/cryostat-agent.jar
CRYOSTAT_AGENT_APP_NAME: spring-boot-3
CRYOSTAT_AGENT_WEBSERVER_HOST: spring-boot-3
CRYOSTAT_AGENT_WEBSERVER_PORT: 9591
CRYOSTAT_AGENT_CALLBACK: http://spring-boot-3:9591/
CRYOSTAT_AGENT_BASEURI: ${CRYOSTAT_PROXY_PROTOCOL}://${CRYOSTAT_HTTP_HOST}:${CRYOSTAT_PROXY_PORT}/
CRYOSTAT_AGENT_BASEURI_RANGE: public
CRYOSTAT_AGENT_WEBCLIENT_TLS_TRUST_ALL: "true"
CRYOSTAT_AGENT_WEBCLIENT_TLS_VERIFY_HOSTNAME: "false"
CRYOSTAT_AGENT_AUTHORIZATION_TYPE: basic
CRYOSTAT_AGENT_AUTHORIZATION_VALUE: user:pass
CRYOSTAT_AGENT_API_WRITES_ENABLED: "true"
CRYOSTAT_AGENT_HARVESTER_TEMPLATE: Profiling
CRYOSTAT_AGENT_HARVESTER_PERIOD_MS: 300000
CRYOSTAT_AGENT_HARVESTER_MAX_FILES: 3
CRYOSTAT_AGENT_HARVESTER_EXIT_MAX_AGE_MS: 60000
CRYOSTAT_AGENT_HARVESTER_EXIT_MAX_SIZE_B: 153600 # "$(echo 1024*150 | bc)"

0 comments on commit a2c0ed0

Please sign in to comment.