Skip to content

Commit

Permalink
test(smoketest): add native image sample app (#1525)
Browse files Browse the repository at this point in the history
* feat(smoketest): add native image sample app

* remove unnecessary publish

* clean up port publications

* bump -core version to one that can connect to native images
  • Loading branch information
andrewazores authored Jun 8, 2023
1 parent 4f2d8e1 commit f0884a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<com.google.dagger.version>2.45</com.google.dagger.version>
<com.google.dagger.compiler.version>2.45</com.google.dagger.compiler.version>

<io.cryostat.core.version>2.20.0</io.cryostat.core.version>
<io.cryostat.core.version>2.21.0</io.cryostat.core.version>

<org.openjdk.nashorn.core.version>15.4</org.openjdk.nashorn.core.version>
<org.apache.commons.lang3.version>3.12.0</org.apache.commons.lang3.version>
Expand Down
28 changes: 8 additions & 20 deletions smoketest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ runDemoApps() {
local protocol="http"
fi

podman run \
--name jmxquarkus \
--pod cryostat-pod \
--label io.cryostat.discovery="true" \
--label io.cryostat.jmxPort="51423" \
--rm -d quay.io/roberttoyonaga/jmx:jmxquarkus@sha256:b067f29faa91312d20d43c55d194a2e076de7d0d094da3d43ee7d2b2b5a6f100

podman run \
--name vertx-fib-demo-1 \
--env HTTP_PORT=8081 \
Expand Down Expand Up @@ -286,49 +293,30 @@ runReportGenerator() {
}

createPod() {
local jmxPort; local webPort; local datasourcePort; local grafanaPort;
jmxPort="$(getPomProperty cryostat.rjmxPort)"
local webPort; local datasourcePort; local grafanaPort;
webPort="$(getPomProperty cryostat.webPort)"
datasourcePort="$(getPomProperty cryostat.itest.jfr-datasource.port)"
grafanaPort="$(getPomProperty cryostat.itest.grafana.port)"
podman pod create \
--replace \
--hostname cryostat \
--name cryostat-pod \
--publish "${jmxPort}:${jmxPort}" \
--publish "${webPort}:${webPort}" \
--publish "${datasourcePort}:${datasourcePort}" \
--publish "${grafanaPort}:${grafanaPort}" \
--publish 5432:5432 \
--publish 8081:8081 \
--publish 8082:8082 \
--publish 8083:8083 \
--publish 9093:9093 \
--publish 9094:9094 \
--publish 9095:9095 \
--publish 9096:9096 \
--publish 9999:9999 \
--publish 8082:8082 \
--publish 9990:9990 \
--publish 9991:9991 \
--publish 10000:10000 \
--publish 10001:10001 \
--publish 10010:10010
# 5432: postgres
# 8081: vertx-fib-demo-1 HTTP
# 8082: vertx-fib-demo-2 HTTP
# 8083: vertx-fib-demo-3 HTTP
# 9093: vertx-fib-demo-1 RJMX
# 9094: vertx-fib-demo-2 RJMX
# 9095: vertx-fib-demo-3 RJMX
# 9097: quarkus-test-agent-1 RJMX
# 9098: quarkus-test-agent-2 RJMX
# 8082: Wildfly HTTP
# 9990: Wildfly Admin Console
# 9991: Wildfly RJMX
# 9977: quarkus-test-agent-1 Agent-HTTP
# 9988: quarkus-test-agent-2 Agent-HTTP
# 10000: cryostat-reports RJMX
# 10001: cryostat-reports HTTP
# 10010: quarkus-test-agent-1 HTTP
# 10011: quarkus-test-agent-2 HTTP
Expand Down

0 comments on commit f0884a6

Please sign in to comment.