Skip to content

Commit

Permalink
clean up to use cryostatio/test-applications gameserver image
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Jul 4, 2024
1 parent 860226f commit 7aba148
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 70 deletions.
21 changes: 0 additions & 21 deletions compose/Containerfile.minecraft

This file was deleted.

39 changes: 0 additions & 39 deletions compose/sample-apps-extras.yml

This file was deleted.

38 changes: 36 additions & 2 deletions compose/sample-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ services:
start_period: 30s
timeout: 5s
quarkus-test-agent:
image: ${QUARKUS_TEST_IMAGE:-quay.io/andrewazores/quarkus-test:latest}
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-test-agent
ports:
Expand Down Expand Up @@ -139,4 +139,38 @@ services:
retries: 3
start_period: 30s
timeout: 5s

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: http://${CRYOSTAT_HTTP_HOST}:8080/
CRYOSTAT_AGENT_BASEURI_RANGE: public
CRYOSTAT_AGENT_SSL_TRUST_ALL: "true"
CRYOSTAT_AGENT_SSL_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
restart: always
9 changes: 1 addition & 8 deletions smoketest.bash
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ CRYOSTAT_HTTP_PORT=${CRYOSTAT_HTTP_PORT:-8080}
USE_PROXY=${USE_PROXY:-true}
DEPLOY_GRAFANA=${DEPLOY_GRAFANA:-true}
DRY_RUN=${DRY_RUN:-false}
upFlags=()

display_usage() {
echo "Usage:"
Expand All @@ -34,7 +33,6 @@ display_usage() {
echo -e "\t-G\t\t\t\t\t\texclude Grafana dashboard and jfr-datasource from deployment."
echo -e "\t-r\t\t\t\t\t\tconfigure a cryostat-Reports sidecar instance"
echo -e "\t-t\t\t\t\t\t\tinclude sample applications for Testing."
echo -e "\t-T\t\t\t\t\t\tinclude additional sample applications for Testing."
echo -e "\t-V\t\t\t\t\t\tdo not discard data storage Volumes on exit."
echo -e "\t-X\t\t\t\t\t\tdeploy additional development aid tools."
echo -e "\t-c [podman|docker]\t\t\t\tUse Podman or Docker Container Engine (default \"podman\")."
Expand All @@ -44,7 +42,7 @@ display_usage() {

s3=seaweed
ce=podman
while getopts "hs:prGtTOVXcbn" opt; do
while getopts "hs:prGtOVXcbn" opt; do
case $opt in
h)
display_usage
Expand All @@ -62,10 +60,6 @@ while getopts "hs:prGtTOVXcbn" opt; do
t)
FILES+=("${DIR}/compose/sample-apps.yml")
;;
T)
FILES+=("${DIR}/compose/sample-apps-extras.yml")
upFlags+=("--build")
;;
O)
PULL_IMAGES=false
;;
Expand Down Expand Up @@ -328,7 +322,6 @@ fi
docker-compose \
"${CMD[@]}" \
up \
"${upFlags[@]}" \
--renew-anon-volumes \
--remove-orphans \
--abort-on-container-exit

0 comments on commit 7aba148

Please sign in to comment.