Skip to content

netifi/pinger

Repository files navigation

pinger

See our helm charts tutorial for how to really use this project.

Releasing

./gradlew clean build dockerBuildImage
docker tag netifi/pinger-ping:latest netifi/pinger-ping:1.6.10
docker tag netifi/pinger-pong:latest netifi/pinger-pong:1.6.10
docker push netifi/pinger-ping:1.6.10
docker push netifi/pinger-pong:1.6.10

InfluxData Sandbox

The Ping and Pong instances support sending metrics to InfluxDB. To get started InfluxData maintains a Sandbox project we can use if you already have Docker and Docker Compose installed to start the entire TICK stack:

git clone https://github.com/influxdata/sandbox.git
cd sandbox
./sandbox up

Prometheus

The Ping and Pong instances also support Prometheus metrics. You'll launch all your instances first, and then edit the prometheus.mac.yml file. Then you can launch Prometheus like so:

docker run -d --name=prometheus \
-p 9090:9090 \
-v $(pwd)/helper_files/prometheus.mac.yml:/etc/prometheus/prometheus.yml \
prom/prometheus --config.file=/etc/prometheus/prometheus.yml

Then you can go to localhost:9090 to see the Prometheus Web UI.

Local Demo OS X

Community Edition

Start a Netifi Broker:

docker run --rm \
-p 7001:7001 \
-p 8001:8001 \
-p 8101:8101 \
-e BROKER_SERVER_OPTS=" \
'-Dnetifi.broker.tcp.publicAddress=host.docker.internal' \
'-Dnetifi.authentication.0.accessKey=9007199254740991'  \
'-Dnetifi.authentication.0.accessToken=kTBDVtfRBO4tHOnZzSyY5ym2kfY=' \
'-Dnetifi.broker.admin.accessKey=9007199254740991' \
'-Dnetifi.broker.admin.accessToken=kTBDVtfRBO4tHOnZzSyY5ym2kfY=' \
" \
netifi/broker:1.6.10

Note, the keys provided in this tutorial can be changed and generated with the following command:

docker run --rm \
-e BROKER_SERVER_OPTS="-Dnetifi.broker.generateAccessToken=true" \
netifi/broker:1.6.10

Start a Pong service:

docker run --rm \
-e SPRING_PROFILES_ACTIVE=docker-mac,influx,prometheus \
-P netifi/pinger-pong:1.6.10

Start a Ping service:

docker run --rm \
-e SPRING_PROFILES_ACTIVE=docker-mac,influx,prometheus \
-P netifi/pinger-ping:1.6.10

Enterprise Edition

Start a Netifi Broker:

docker run --rm \
-p 7001:7001 \
-p 8001:8001 \
-p 8101:8101 \
-e BROKER_SERVER_OPTS=" \
'-Dnetifi.enterprise.accessKey=<SECRET_KEY>' \
'-Dnetifi.enterprise.accessToken=<SECRET_TOKEN>' \
'-Dnetifi.enterprise.address=<SECRET_ADDRESS>' \
'-Dnetifi.broker.tcp.publicAddress=host.docker.internal' \
'-Dnetifi.broker.cluster.clusterName=pinger-local' \
" \
netifi/broker:1.6.10

Start a Pong service:

docker run --rm \
-e NETIFI_CLIENT_ACCESS_KEY=<SECRET_KEY> \
-e NETIFI_CLIENT_ACCESS_TOKEN=<SECRET_TOKEN> \
-e SPRING_PROFILES_ACTIVE=docker-mac,influx,prometheus \
-P netifi/pinger-pong:1.6.10

Start a Ping service:

docker run --rm \
-e NETIFI_CLIENT_ACCESS_KEY=<SECRET_KEY> \
-e NETIFI_CLIENT_ACCESS_TOKEN=<SECRET_TOKEN> \
-e SPRING_PROFILES_ACTIVE=docker-mac,influx,prometheus \
-P netifi/pinger-ping:1.6.10

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages