-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from mrFlick72/spring-cloud-netflix
Spring cloud netflix
- Loading branch information
Showing
32 changed files
with
557 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: "3.0" | ||
|
||
services: | ||
eureka-server: | ||
container_name: eureka | ||
image: springcloud/eureka | ||
ports: | ||
- "8761:8761" | ||
redis: | ||
container_name: redis | ||
image: redis | ||
ports: | ||
- "6379:6379" | ||
mongo: | ||
container_name: mongo | ||
image: mongo | ||
ports: | ||
- "27017:27017" | ||
volumes: | ||
- "${MONGO_VOLUME}:/var/lib/mongodb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bash | ||
|
||
docker-compose up 2>docker.log & | ||
|
||
cd .. | ||
|
||
PROJECT_HOME=`pwd` | ||
|
||
HELLO_SERVICE_JAR_DIR=$PROJECT_HOME/hello-service/build/libs | ||
MESSAGE_SERVICE_JAR_DIR=$PROJECT_HOME/message-service/build/libs | ||
UI_JAR_DIR=$PROJECT_HOME/ui/target | ||
|
||
echo "The content of PROJECT_HOME is: $PROJECT_HOME" | ||
echo "The content of HELLO_SERVICE_JAR_DIR is: $HELLO_SERVICE_JAR_DIR" | ||
echo "The content of MESSAGE_SERVICE_JAR_DIR is: $MESSAGE_SERVICE_JAR_DIR" | ||
echo "The content of UI_JAR_DIR is: $UI_JAR_DIR" | ||
|
||
|
||
echo "start of hello-service" | ||
cd $HELLO_SERVICE_JAR_DIR | ||
java -jar -Dspring.profiles.active=netflix hello-service.jar >$PROJECT_HOME/hello-service.log & | ||
|
||
|
||
echo "start of message-service" | ||
cd $MESSAGE_SERVICE_JAR_DIR | ||
java -jar -Dspring.profiles.active=netflix message-service.jar >$PROJECT_HOME/message-service.log & | ||
|
||
|
||
#echo "start of ui" | ||
#cd $UI_JAR_DIR | ||
#java -jar -Dspring.profiles.active=netflix ui-interface.jar >$PROJECT_HOME/ui-interface.log & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
if (project.hasProperty('kubernetes')) { | ||
println("kubernetes") | ||
dependencies { | ||
implementation 'org.springframework.cloud:spring-cloud-starter-kubernetes' | ||
implementation 'org.springframework.cloud:spring-cloud-starter-kubernetes-config' | ||
} | ||
} else if (project.hasProperty('netflix')) { | ||
println("netflix") | ||
dependencies { | ||
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dependencies { | ||
implementation 'org.springframework.cloud:spring-cloud-starter-kubernetes' | ||
implementation 'org.springframework.cloud:spring-cloud-starter-kubernetes-config' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dependencies { | ||
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client' | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
server: | ||
use-forward-headers: true | ||
port: 7070 | ||
|
||
hello-service-uri: http://message-service/message/random | ||
|
||
management: | ||
server: | ||
port: 7071 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
if (project.hasProperty('kubernetes')) { | ||
println("kubernetes") | ||
dependencies { | ||
implementation 'org.springframework.cloud:spring-cloud-starter-kubernetes' | ||
implementation 'org.springframework.cloud:spring-cloud-starter-kubernetes-config' | ||
} | ||
} else if (project.hasProperty('netflix')) { | ||
println("netflix") | ||
dependencies { | ||
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dependencies { | ||
implementation 'org.springframework.cloud:spring-cloud-starter-kubernetes' | ||
implementation 'org.springframework.cloud:spring-cloud-starter-kubernetes-config' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dependencies { | ||
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 0 additions & 87 deletions
87
message-service/src/main/kubernetes/message-service-k8s.yml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.