Skip to content

Instantly share code, notes, and snippets.

@mstine
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mstine/ffd856b6bdbaca59540c to your computer and use it in GitHub Desktop.
Save mstine/ffd856b6bdbaca59540c to your computer and use it in GitHub Desktop.
Some ltc commands for Spring Cloud Demos
# Deploy RabbitMQ
ltc create rabbit rabbitmq:3-management -r -p 5672,15672 -M 5672 -m 512
# Deploy Spring Cloud Config Server
ltc create config-server mstine/config-server --memory-mb=512 -e SPRING_CLOUD_CONFIG_SERVER_GIT_URI=https://github.com/pieterhumphrey/config-repo -p 8888
# Deploy Netflix OSS Eureka via Spring Cloud Netflix
ltc create eureka mstine/eureka --memory-mb=512 -p 8761
# Deploy Config Server Client Demo App
ltc create dist-config mstine/dist-config --memory-mb=512 -e SPRING_PROFILES_ACTIVE=lattice -e SPRING_CLOUD_CONFIG_URI=http://config-server.<YOUR_IP>.xip.io
# Deploy Producer Service (with no routes)
ltc create producer mstine/producer --memory-mb=512 -e SPRING_PROFILES_ACTIVE=lattice -e SPRING_CLOUD_CONFIG_URI=http://config-server.<YOUR_IP>.xip.io
-i 5 --no-routes
# Deploy Consumer Service (Client of Producer service, link protected by Hystrix!)
ltc create consumer-hystrix mstine/consumer-hystrix --memory-mb=512 -e SPRING_PROFILES_ACTIVE=lattice -e SPRING_CLOUD_CONFIG_URI=http://config-server.<YOUR_IP>.xip.io
# Deploy Zuul Reverse Proxy (Also a client of Producer service)
ltc create zuul mstine/zuul --memory-mb=512 -e SPRING_PROFILES_ACTIVE=lattice -e SPRING_CLOUD_CONFIG_URI=http://config-server.<YOUR_IP>.xip.io
# Deploy Hystrix Dashboard
ltc create hystrix-dashboard mstine/hystrix-dashboard --memory-mb=512 -p 7979
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment