Skip to content

Commit

Permalink
Docker API Discovery Client
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg committed Jun 8, 2023
1 parent 9a2e6d0 commit 7c7ba10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ if [ ! -d "$(dirname "$0")/probes" ]; then
mkdir "$(dirname "$0")/probes"
fi

if [ ! "$(docker network ls | grep cryostat-docker)" ]; then
if ! docker network ls | grep -q cryostat-docker ; then
docker network create --driver bridge cryostat-docker
fi

Expand Down
16 changes: 1 addition & 15 deletions smoketest-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@ getPomProperty() {
}

runCryostat() {
local DIR; local host; local datasourcePort; local grafanaPort;
local DIR; local datasourcePort; local grafanaPort;
DIR="$(dirname "$(readlink -f "$0")")"
host="$(getPomProperty cryostat.itest.webHost)"
datasourcePort="$(getPomProperty cryostat.itest.jfr-datasource.port)"
grafanaPort="$(getPomProperty cryostat.itest.grafana.port)"
webPort="$(getPomProperty cryostat.webPort)"
# credentials `user:pass`
echo "user:d74ff0ee8da3b9806b18c877dbf29bbde50b5bd8e4dad7a3a725000feb82e8f1" > "./conf/cryostat-users.properties"

Expand Down Expand Up @@ -97,18 +95,6 @@ runPostgres() {
}

runDemoApps() {
local webPort;
if [ -z "$CRYOSTAT_WEB_PORT" ]; then
webPort="$(getPomProperty cryostat.itest.webPort)"
else
webPort="${CRYOSTAT_WEB_PORT}"
fi
if [ -z "$CRYOSTAT_DISABLE_SSL" ]; then
local protocol="https"
else
local protocol="http"
fi

docker run \
--name vertx-fib-demo-1 \
--network cryostat-docker \
Expand Down

0 comments on commit 7c7ba10

Please sign in to comment.