-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
vr79x
committed
Dec 4, 2017
1 parent
2de85e7
commit bc2220e
Showing
20 changed files
with
722 additions
and
26 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,11 @@ | ||
FROM java:8-jre | ||
|
||
MAINTAINER Hitesh Joshi [email protected] | ||
|
||
VOLUME [ "/data" ] | ||
|
||
WORKDIR /data | ||
|
||
EXPOSE 8080 | ||
ENTRYPOINT [ "java" ] | ||
CMD ["-?"] |
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
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,41 @@ | ||
# Spring properties | ||
spring: | ||
application: | ||
name: customer-service | ||
freemarker: | ||
enabled: false # Ignore Eureka dashboard FreeMarker templates | ||
jpa: | ||
hibernate: | ||
ddl-auto: none | ||
datasource: | ||
url: jdbc:mysql://localhost:32769/microservices_cust | ||
username: root | ||
password: test | ||
# thymeleaf: | ||
# cache: false # Allow Thymeleaf templates to be reloaded at runtime | ||
# prefix: classpath:/challenges-server/templates/ # Trailing / mandatory | ||
# Template location for this application only | ||
|
||
# Map the error path to error template (for Thymeleaf) | ||
error: | ||
path: /error | ||
|
||
# HTTP Server | ||
server: | ||
port: 3333 # HTTP (Tomcat) port | ||
display-name: Customer | ||
|
||
# Discovery Server Access | ||
# 1. DEV ONLY: Reduce the lease renewal interval to speed up registration | ||
# 2. Define URL of registration server (defaultZone) | ||
eureka: | ||
client: | ||
serviceUrl: | ||
defaultZone: http://eureka:1111/eureka/ # using eureka instead of localhost | ||
instance: | ||
leaseRenewalIntervalInSeconds: 5 # DO NOT DO THIS IN PRODUCTION | ||
|
||
|
||
|
||
|
||
|
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
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,41 @@ | ||
# Spring properties | ||
spring: | ||
application: | ||
name: inventory-service | ||
freemarker: | ||
enabled: false # Ignore Eureka dashboard FreeMarker templates | ||
jpa: | ||
hibernate: | ||
ddl-auto: none | ||
datasource: | ||
url: jdbc:mysql://localhost:32769/microservices_prod | ||
username: root | ||
password: test | ||
# thymeleaf: | ||
# cache: false # Allow Thymeleaf templates to be reloaded at runtime | ||
# prefix: classpath:/challenges-server/templates/ # Trailing / mandatory | ||
# Template location for this application only | ||
|
||
# Map the error path to error template (for Thymeleaf) | ||
error: | ||
path: /error | ||
|
||
# HTTP Server | ||
server: | ||
port: 2222 # HTTP (Tomcat) port | ||
display-name: Inventory | ||
|
||
# Discovery Server Access | ||
# 1. DEV ONLY: Reduce the lease renewal interval to speed up registration | ||
# 2. Define URL of registration server (defaultZone) | ||
eureka: | ||
client: | ||
serviceUrl: | ||
defaultZone: http://eureka:1111/eureka/ # using eureka instead of localhost | ||
instance: | ||
leaseRenewalIntervalInSeconds: 5 # DO NOT DO THIS IN PRODUCTION | ||
|
||
|
||
|
||
|
||
|
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,24 @@ | ||
target/ | ||
!.mvn/wrapper/maven-wrapper.jar | ||
*.mvn/ | ||
### STS ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
|
||
### IntelliJ IDEA ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
### NetBeans ### | ||
nbproject/private/ | ||
build/ | ||
nbbuild/ | ||
dist/ | ||
nbdist/ | ||
.nb-gradle/ |
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,6 @@ | ||
FROM java:8 | ||
VOLUME /tmp | ||
ADD /target/inventory-0.0.1-SNAPSHOT.jar app.jar | ||
EXPOSE 8080 | ||
RUN bash -c 'touch /app.jar' | ||
ENTRYPOINT ["java","-Dspring.datasource.url=jdbc:mysql://docker-mysql/microservices_prod","-Dspring.datasource.username=root","-Dspring.datasource.password=test","-jar","/app.jar"] |
Oops, something went wrong.