Skip to content

gregturn/spring-cloud-lattice

 
 

Repository files navigation

Spring Cloud Lattice

Preview of Spring Cloud Lattice implementation

Running the sample

  1. Install lattice
  2. Follow the getting started guide, including scaling lattice-app to 3
  3. run mvn package
  4. run java -jar spring-cloud-lattice-sample/target/spring-cloud-lattice-sample-1.0.0.BUILD-SNAPSHOT.jar
  5. visit http://localhost:8080?service=lattice-app verify that the 3 services rotate through as you refresh

Running the sample ON LATTICE

  1. cd spring-cloud-lattice-sample
  2. mvn clean package docker:build
  3. docker tag spring-cloud-lattice-sample:latest <yourdockerhubid>/spring-cloud-lattice-sample
  4. docker push <yourdockerhubid>/spring-cloud-lattice-sample
  5. LATTICE_CLI_TIMEOUT=180 ltc create spring-cloud-lattice-sample spencergibb/spring-cloud-lattice-sample
  6. ltc scale spring-cloud-lattice-sample 3
  7. visit http://spring-cloud-lattice-sample.192.168.11.11.xip.io?service=spring-cloud-lattice-sample verify that the 3 services rotate through as you refresh
  8. visit http://spring-cloud-lattice-sample.192.168.11.11.xip.io/me verify that the 3 services rotate through as you refresh

About

Preview of Spring Cloud Lattice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%