Going to play with Spring-Boot some more and etcd with some hystrix.
./gradlew run
http://localhost:8080/ping
http://localhost:8080/pong
http://localhost:8080/services
Note: The /services
endpoint assumes etcd is running and the /ping
and /pong
services are running and registered. See jstenhouse/docker_playground for more info.
./gradlew clean build && docker build -t jstenhouse/discovery_example:latest .
docker run --name discovery_example_ping -d -p 8080:8080 -e SERVICE_NAME=ping -e SERVER_PORT=8080 --link etcd jstenhouse/discovery_example:latest
docker run --name discovery_example_pong -d -p 8081:8081 -e SERVER_PORT=8081 jstenhouse/discovery_example:latest
docker run --name discovery_example_services -d -p 8082:8082 -e SERVER_PORT=8082 jstenhouse/discovery_example:latest