forked from cryostatio/cryostat-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(smoketest): split up sample applications, selectable using -t (c…
- Loading branch information
1 parent
7453104
commit 826f4d0
Showing
11 changed files
with
268 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version: "3" | ||
services: | ||
gameserver: | ||
depends_on: | ||
cryostat: | ||
condition: service_healthy | ||
image: ${GAMESERVER_TEST_IMAGE:-quay.io/redhat-java-monitoring/gameserver-cryostat-agent:latest} | ||
hostname: gameserver | ||
ports: | ||
- "7091" | ||
- "9494" | ||
- "25565:25565" | ||
environment: | ||
CRYOSTAT_AGENT_APP_NAME: gameserver | ||
CRYOSTAT_AGENT_WEBSERVER_HOST: gameserver | ||
CRYOSTAT_AGENT_WEBSERVER_PORT: 9494 | ||
CRYOSTAT_AGENT_CALLBACK: http://gameserver:9494/ | ||
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)" | ||
EULA: "true" | ||
ONLINE_MODE: "false" | ||
OVERRIDE_SERVER_PROPERTIES: "true" | ||
ENABLE_JMX: "true" | ||
JMX_HOST: gameserver | ||
JMX_PORT: "7091" | ||
JVM_OPTS: -javaagent:/opt/cryostat/agent.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
version: "3" | ||
services: | ||
quarkus-cryostat-agent: | ||
image: ${QUARKUS_TEST_IMAGE:-quay.io/redhat-java-monitoring/quarkus-cryostat-agent:latest} | ||
# do not add a depends_on:cryostat/depends_on:auth here, so that we can test that the agent is tolerant of that state | ||
hostname: quarkus-cryostat-agent | ||
ports: | ||
- "10010:10010" | ||
expose: | ||
- "9977" | ||
environment: | ||
JAVA_OPTS_APPEND: >- | ||
-Dquarkus.http.host=0.0.0.0 | ||
-Djava.util.logging.manager=org.jboss.logmanager.LogManager | ||
-javaagent:/deployments/app/cryostat-agent.jar | ||
-Dcom.sun.management.jmxremote.autodiscovery=false | ||
-Dcom.sun.management.jmxremote | ||
-Dcom.sun.management.jmxremote.port=22222 | ||
-Dcom.sun.management.jmxremote.rmi.port=22222 | ||
-Djava.rmi.server.hostname=quarkus-cryostat-agent | ||
-Dcom.sun.management.jmxremote.authenticate=false | ||
-Dcom.sun.management.jmxremote.ssl=false | ||
-Dcom.sun.management.jmxremote.local.only=false | ||
QUARKUS_HTTP_PORT: 10010 | ||
ORG_ACME_CRYOSTATSERVICE_ENABLED: "false" | ||
CRYOSTAT_AGENT_APP_NAME: quarkus-cryostat-agent | ||
CRYOSTAT_AGENT_WEBSERVER_HOST: quarkus-cryostat-agent | ||
CRYOSTAT_AGENT_WEBSERVER_PORT: 9977 | ||
CRYOSTAT_AGENT_CALLBACK: http://quarkus-cryostat-agent:9977/ | ||
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_HARVESTER_PERIOD_MS: 30000 | ||
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)" | ||
CRYOSTAT_AGENT_API_WRITES_ENABLED: "true" | ||
restart: always | ||
healthcheck: | ||
test: curl --fail http://localhost:10010 || exit 1 | ||
interval: 10s | ||
retries: 3 | ||
start_period: 30s | ||
timeout: 5s |
4 changes: 2 additions & 2 deletions
4
compose/sample-apps_https.yml → ...ple_apps/quarkus-cryostat-agent_https.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.