Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ You can access the API documentation [here](https://sfg-beer-works.github.io/bre
* Subscribe to Spring Framework Guru on [YouTube](https://www.youtube.com/channel/UCrXb8NaMPQCQkT8yMP_hSkw)
* Like Spring Framework Guru on [Facebook](https://www.facebook.com/springframeworkguru/)
* Follow Spring Framework Guru on [Twitter](https://twitter.com/spring_guru)
* Connect with John Thompson on [LinkedIn](http://www.linkedin.com/in/springguru)
* Connect with John Thompson on [LinkedIn](http://www.linkedin.com/in/springguru)

mvn clean package

mvn spring-boot:build-image
5 changes: 3 additions & 2 deletions k8s-scripts/beer-service-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ spec:
co.elastic.logs.json-logging/json.message_key: "message"
spec:
containers:
- image: springframeworkguru/kbe-brewery-beer-service
- image: kbe-brewery-beer-service:1.0-SNAPSHOT
imagePullPolicy: Never
name: kbe-brewery-beer-service
resources: {}
env:
- name: SPRING_DATASOURCE_USER
- name: SPRING_DATASOURCE_USERNAME
value: root
- name: SPRING_DATASOURCE_PASSWORD
value: dbpassword
Expand Down
3 changes: 2 additions & 1 deletion k8s-scripts/gateway-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ spec:
app: gateway
spec:
containers:
- image: springframeworkguru/kbe-brewery-gateway
- image: kbe-brewery-gateway:1.0-SNAPSHOT
imagePullPolicy: Never
name: kbe-brewery-gateway
resources: {}
status: {}
5 changes: 3 additions & 2 deletions k8s-scripts/inventory-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ spec:
co.elastic.logs.json-logging/json.message_key: "message"
spec:
containers:
- image: springframeworkguru/kbe-brewery-inventory-service
- image: kbe-brewery-inventory-service:1.0-SNAPSHOT
imagePullPolicy: Never
name: kbe-brewery-inventory-service
resources: {}
env:
- name: SPRING_DATASOURCE_USER
- name: SPRING_DATASOURCE_USERNAME
value: root
- name: SPRING_DATASOURCE_PASSWORD
value: dbpassword
Expand Down
3 changes: 2 additions & 1 deletion k8s-scripts/inventory-failover-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ spec:
co.elastic.logs.json-logging/json.message_key: "message"
spec:
containers:
- image: springframeworkguru/kbe-brewery-inventory-failover
- image: kbe-brewery-inventory-failover:1.0-SNAPSHOT
imagePullPolicy: Never
name: kbe-brewery-inventory-failover
resources: {}
status: {}
13 changes: 11 additions & 2 deletions k8s-scripts/order-service-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,27 @@ spec:
co.elastic.logs.json-logging/json.message_key: "message"
spec:
containers:
- image: springframeworkguru/kbe-brewery-order-service
- image: kbe-brewery-order-service:1.0-SNAPSHOT
imagePullPolicy: Never
name: kbe-brewery-order-service
resources: {}
env:
- name: SPRING_DATASOURCE_USER
value: root
- name: SPRING_DATASOURCE_USERNAME
value: root
- name: SPRING_DATASOURCE_PASSWORD
value: dbpassword
- name: SPRING_DATASOURCE_DRIVER-CLASS-NAME
value: com.mysql.cj.jdbc.Driver
- name: SPRING_JPA_PROPERTIES_HIBERNATE_DIALECT
value: "org.hibernate.dialect.MySQL57InnoDBDialect"
- name: SPRING_JPA_DATABASEPLATFORM
value: "org.hibernate.dialect.MySQL57InnoDBDialect"
- name: SPRING_JPA_HIBERNATE_DDL-AUTO
value: update
- name: SPRING_DATASOURCE_URL
value: jdbc:mysql://mysql:3306/beerservice?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
value: jdbc:mysql://mysql:3306/beerservice?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&useSSL=false
- name: SPRING_ARTEMIS_HOST
value: jms
- name: SFG_BREWERY_BEER-SERVICE-HOST
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ spring.sleuth.reactor.decorate-on-each = true
spring.zipkin.enabled=false

logging.level.org.springframework.cloud.gateway=trace
logging.level.io.github.resilience4j=trace
logging.level.io.github.resilience4j=trace
spring.jpa.properties.hibernate.jdbc.time_zone=UTC
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ sfg.brewery.inventory-user=good
sfg.brewery.inventory-password=beer
spring.cache.jcache.config=classpath:ehcache.xml
spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.jdbc.time_zone=UTC

spring.zipkin.enabled=true
spring.cloud.discovery.enabled=false
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
CREATE DATABASE IF NOT EXISTS beerservice CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
--CREATE DATABASE IF NOT EXISTS beerservice CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE SCHEMA IF NOT EXISTS beerservice;
SET COLLATION CHARSET_utf8;
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
spring.application.name=inventory-failover
server.port=8083
logging.level.org.springframework.web=debug
spring.jpa.properties.hibernate.jdbc.time_zone=UTC

Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ spring.security.user.name=good
spring.security.user.password=beer

# Spring Data hangs when not set under Spring Boot 2.3.0
spring.data.jpa.repositories.bootstrap-mode=default
spring.data.jpa.repositories.bootstrap-mode=default
spring.jpa.properties.hibernate.jdbc.time_zone=UTC
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ spring.artemis.user=artemis
spring.artemis.password=simetraehcapa

# Spring Data hangs when not set under Spring Boot 2.3.0
spring.data.jpa.repositories.bootstrap-mode=default
spring.data.jpa.repositories.bootstrap-mode=default
spring.jpa.properties.hibernate.jdbc.time_zone=UTC
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
CREATE DATABASE IF NOT EXISTS beerservice CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
--CREATE DATABASE IF NOT EXISTS beerservice CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE SCHEMA IF NOT EXISTS beerservice;
SET COLLATION CHARSET_utf8;