-
Notifications
You must be signed in to change notification settings - Fork 19
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 #50 from Azure/gk/fix-deps
fix order-service
- Loading branch information
Showing
28 changed files
with
835 additions
and
132 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
accounting-service/src/main/resources/application-dev.yaml
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,50 @@ | ||
spring: | ||
application: | ||
name: accounting-service | ||
kafka: | ||
producer: | ||
value-serializer: org.springframework.kafka.support.serializer.JsonSerializer | ||
properties: | ||
spring: | ||
json: | ||
type: | ||
mapping: ordersummary:com.microsoft.gbb.reddog.accountingservice.dto.OrderSummaryDto | ||
sasl: | ||
mechanism: ${KAFKASASLMECHANISM:PLAIN} | ||
jaas: | ||
config: ${KAFKASASLJAASCONFIG} | ||
bootstrap-servers: ${KAFKABOOTSTRAPSERVERS:localhost:9092} | ||
security: | ||
protocol: ${KAFKASECURITYPROTOCOL:PLAINTEXT} | ||
config: | ||
import: optional:classpath:.env[.properties] | ||
banner: | ||
location: static/banner.txt | ||
cosmos: | ||
queryMetricsEnabled: 'true' | ||
key: ${AZURECOSMOSDBKEY} | ||
secondaryKey: ${AZURECOSMOSDBSECONDARYKEY} | ||
databaseName: ${AZURECOSMOSDBDATABASENAME} | ||
uri: ${AZURECOSMOSDBURI} | ||
eureka: | ||
client: | ||
register-with-eureka: false | ||
fetch-registry: false | ||
enabled: false | ||
server: | ||
port: '8707' | ||
topic: | ||
name: | ||
producer: ${KAFKATOPICNAME:reddog.orders} | ||
logging: | ||
level: | ||
org: | ||
hibernate: | ||
stat: DEBUG | ||
SQL: DEBUG | ||
springdoc: | ||
api-docs: | ||
path: /api-docs | ||
swagger-ui: | ||
path: /swagger | ||
enabled: true |
50 changes: 50 additions & 0 deletions
50
accounting-service/src/main/resources/application-prod.yaml
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,50 @@ | ||
spring: | ||
application: | ||
name: accounting-service | ||
kafka: | ||
producer: | ||
value-serializer: org.springframework.kafka.support.serializer.JsonSerializer | ||
properties: | ||
spring: | ||
json: | ||
type: | ||
mapping: ordersummary:com.microsoft.gbb.reddog.accountingservice.dto.OrderSummaryDto | ||
sasl: | ||
mechanism: ${KAFKASASLMECHANISM:PLAIN} | ||
jaas: | ||
config: ${KAFKASASLJAASCONFIG} | ||
bootstrap-servers: ${KAFKABOOTSTRAPSERVERS:localhost:9092} | ||
security: | ||
protocol: ${KAFKASECURITYPROTOCOL:PLAINTEXT} | ||
config: | ||
import: optional:classpath:.env[.properties] | ||
banner: | ||
location: static/banner.txt | ||
cosmos: | ||
queryMetricsEnabled: 'true' | ||
key: ${AZURECOSMOSDBKEY} | ||
secondaryKey: ${AZURECOSMOSDBSECONDARYKEY} | ||
databaseName: ${AZURECOSMOSDBDATABASENAME} | ||
uri: ${AZURECOSMOSDBURI} | ||
eureka: | ||
client: | ||
register-with-eureka: false | ||
fetch-registry: false | ||
enabled: false | ||
server: | ||
port: '8707' | ||
topic: | ||
name: | ||
producer: ${KAFKATOPICNAME:reddog.orders} | ||
logging: | ||
level: | ||
org: | ||
hibernate: | ||
stat: DEBUG | ||
SQL: DEBUG | ||
springdoc: | ||
api-docs: | ||
path: /api-docs | ||
swagger-ui: | ||
path: /swagger | ||
enabled: true |
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 |
---|---|---|
@@ -1,19 +1,3 @@ | ||
spring: | ||
profiles: | ||
active: dev, key-vault | ||
application: | ||
name: accounting-service | ||
config: | ||
import: optional:configserver:${CONFIG_SERVER_URL:http://localhost:8888/} | ||
--- | ||
spring: | ||
config: | ||
activate: | ||
on-profile: key-vault | ||
cloud: | ||
azure: | ||
keyvault: | ||
secret: | ||
property-sources: | ||
- name: key-vault-property-source | ||
endpoint: ${AZURE_KEY_VAULT_ENDPOINT} | ||
active: dev |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
spring: | ||
config: | ||
import: optional:file:.env[.properties] | ||
application: | ||
name: loyalty-service | ||
banner: | ||
location: static/banner.txt | ||
redis: | ||
host: ${AZUREREDISHOST} | ||
port: ${AZUREREDISPORT} | ||
password: ${AZUREREDISACCESSKEY} | ||
ssl: true | ||
connect-timeout: 5000 | ||
kafka: | ||
topic: | ||
name: ${KAFKATOPICNAME} | ||
group: ${KAFKATOPICGROUP:loyalty-service} | ||
bootstrap-servers: ${KAFKABOOTSTRAPSERVERS:localhost:9092} | ||
security: | ||
protocol: ${KAFKASECURITYPROTOCOL:PLAINTEXT} | ||
consumer: | ||
group-id: ${KAFKA_CONSUMER_GROUP_ID:loyaltyservice} | ||
auto-offset-reset: latest | ||
properties: | ||
spring: | ||
json: | ||
trusted.packages: "*" | ||
type.mapping: ordersummary:com.microsoft.gbb.reddog.loyaltyservice.dto.OrderSummaryDto | ||
sasl: | ||
jaas.config: ${KAFKASASLJAASCONFIG} | ||
mechanism: ${KAFKASASLMECHANISM:PLAIN} | ||
value-deserializer: org.springframework.kafka.support.serializer.JsonDeserializer | ||
eureka: | ||
client: | ||
register-with-eureka: false | ||
fetch-registry: false | ||
enabled: false | ||
management: | ||
endpoints: | ||
web: | ||
exposure: | ||
include: "*" | ||
endpoint: | ||
health: | ||
show-details: ALWAYS | ||
server: | ||
port: 8703 | ||
springdoc: | ||
api-docs: | ||
path: /api-docs | ||
swagger-ui: | ||
path: /swagger | ||
enabled: true | ||
--- | ||
spring: | ||
profiles: dev | ||
application: | ||
name: loyalty-service |
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,58 @@ | ||
spring: | ||
config: | ||
import: optional:file:.env[.properties] | ||
application: | ||
name: loyalty-service | ||
banner: | ||
location: static/banner.txt | ||
redis: | ||
host: ${AZUREREDISHOST} | ||
port: ${AZUREREDISPORT} | ||
password: ${AZUREREDISACCESSKEY} | ||
ssl: true | ||
connect-timeout: 5000 | ||
kafka: | ||
topic: | ||
name: ${KAFKATOPICNAME} | ||
group: ${KAFKATOPICGROUP:loyalty-service} | ||
bootstrap-servers: ${KAFKABOOTSTRAPSERVERS:localhost:9092} | ||
security: | ||
protocol: ${KAFKASECURITYPROTOCOL:PLAINTEXT} | ||
consumer: | ||
group-id: ${KAFKA_CONSUMER_GROUP_ID:loyaltyservice} | ||
auto-offset-reset: latest | ||
properties: | ||
spring: | ||
json: | ||
trusted.packages: "*" | ||
type.mapping: ordersummary:com.microsoft.gbb.reddog.loyaltyservice.dto.OrderSummaryDto | ||
sasl: | ||
jaas.config: ${KAFKASASLJAASCONFIG} | ||
mechanism: ${KAFKASASLMECHANISM:PLAIN} | ||
value-deserializer: org.springframework.kafka.support.serializer.JsonDeserializer | ||
eureka: | ||
client: | ||
register-with-eureka: false | ||
fetch-registry: false | ||
enabled: false | ||
management: | ||
endpoints: | ||
web: | ||
exposure: | ||
include: "*" | ||
endpoint: | ||
health: | ||
show-details: ALWAYS | ||
server: | ||
port: 8703 | ||
springdoc: | ||
api-docs: | ||
path: /api-docs | ||
swagger-ui: | ||
path: /swagger | ||
enabled: true | ||
--- | ||
spring: | ||
profiles: dev | ||
application: | ||
name: loyalty-service |
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 |
---|---|---|
@@ -1,19 +1,3 @@ | ||
spring: | ||
profiles: | ||
active: dev, key-vault | ||
application: | ||
name: loyalty-service | ||
config: | ||
import: optional:configserver:${CONFIG_SERVER_URL:http://localhost:8888/} | ||
--- | ||
spring: | ||
config: | ||
activate: | ||
on-profile: key-vault | ||
cloud: | ||
azure: | ||
keyvault: | ||
secret: | ||
property-sources: | ||
- name: key-vault-property-source | ||
endpoint: ${AZURE_KEY_VAULT_ENDPOINT} | ||
active: dev |
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,87 @@ | ||
spring: | ||
application: | ||
name: makeline-service | ||
main: | ||
allow-bean-definition-overriding: true | ||
banner: | ||
location: static/banner.txt | ||
redis: | ||
host: ${AZUREREDISHOST} | ||
port: ${AZUREREDISPORT} | ||
password: ${AZUREREDISACCESSKEY} | ||
ssl: true | ||
connect-timeout: 5000 | ||
# cloud: | ||
# stream: | ||
# default-binder: kafka | ||
kafka: | ||
topic: | ||
name: ${KAFKATOPICNAME} | ||
completed-orders-name: ${KAFKA_COMPLETED_ORDERS_TOPIC:orderscompleted} | ||
group: ${KAFKATOPICGROUP:makeline-service} | ||
bootstrap-servers: ${KAFKABOOTSTRAPSERVERS:localhost:9092} | ||
security: | ||
protocol: ${KAFKASECURITYPROTOCOL:PLAINTEXT} | ||
producer: | ||
value-serializer: org.springframework.kafka.support.serializer.JsonSerializer | ||
properties: | ||
sasl: | ||
mechanism: ${KAFKASASLMECHANISM:PLAIN} | ||
jaas: | ||
config: ${KAFKASASLJAASCONFIG} | ||
spring: | ||
json: | ||
type: | ||
mapping: ordersummary:com.microsoft.gbb.reddog.makelineservice.dto.OrderSummaryDto | ||
consumer: | ||
group-id: ${KAFKA_CONSUMER_GROUP_ID:makelineservice} | ||
auto-offset-reset: latest | ||
properties: | ||
spring: | ||
json: | ||
trusted.packages: "*" | ||
type.mapping: ordersummary:com.microsoft.gbb.reddog.makelineservice.dto.OrderSummaryDto | ||
sasl: | ||
jaas: | ||
config: ${KAFKASASLJAASCONFIG} | ||
mechanism: ${KAFKASASLMECHANISM:PLAIN} | ||
value-deserializer: org.springframework.kafka.support.serializer.JsonDeserializer | ||
messaging: | ||
pubsub: | ||
enabled: true | ||
TOPIC_NAME: makeline-service-topic | ||
SUB_NAME: pubsub | ||
eureka: | ||
client: | ||
register-with-eureka: false | ||
fetch-registry: false | ||
enabled: false | ||
cosmos: | ||
uri: ${AZURECOSMOSDBURI} | ||
key: ${AZURECOSMOSDBKEY} | ||
secondaryKey: ${AZURECOSMOSDBSECONDARYKEY} | ||
databaseName: ${AZURECOSMOSDBDATABASENAME} | ||
queryMetricsEnabled: true | ||
containerName: ${AZURE_COSMOSDB_CONTAINER_NAME:reddog} | ||
requestUnits: ${AZURE_COSMOSDB_REQUEST_UNITS:400} | ||
management: | ||
endpoints: | ||
web: | ||
exposure: | ||
include: "*" | ||
endpoint: | ||
health: | ||
show-details: ALWAYS | ||
server: | ||
port: 8704 | ||
springdoc: | ||
api-docs: | ||
path: /api-docs | ||
swagger-ui: | ||
path: /swagger | ||
enabled: true | ||
--- | ||
spring: | ||
profiles: dev | ||
application: | ||
name: makeline-service |
Oops, something went wrong.