adding architect json files and env config
This commit is contained in:
parent
61dd04992b
commit
5303deb521
11 changed files with 374 additions and 0 deletions
20
src/adservice/architect.json
Normal file
20
src/adservice/architect.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"name": "architect/adservice",
|
||||
"dependencies": {},
|
||||
"parameters": {
|
||||
"PORT": {
|
||||
"description": "port to run the server"
|
||||
}
|
||||
},
|
||||
"datastores": {},
|
||||
"api": {
|
||||
"type": "grpc",
|
||||
"definitions": []
|
||||
},
|
||||
"subscriptions": {},
|
||||
"description": "",
|
||||
"keywords": [
|
||||
""
|
||||
],
|
||||
"language": "java"
|
||||
}
|
31
src/cartservice/architect.json
Normal file
31
src/cartservice/architect.json
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
"name": "architect/cartservice",
|
||||
"dependencies": {},
|
||||
"parameters": {
|
||||
"REDIS_ADDR": {
|
||||
"description": "location of redis cache"
|
||||
},
|
||||
"PORT": {
|
||||
"description": "port to run the service on"
|
||||
},
|
||||
"LISTEN_ADDR": {
|
||||
"description": "listen address of the server"
|
||||
}
|
||||
},
|
||||
"datastores": {
|
||||
"primary": {
|
||||
"image": "redis",
|
||||
"port": 6379
|
||||
}
|
||||
},
|
||||
"api": {
|
||||
"type": "grpc",
|
||||
"definitions": []
|
||||
},
|
||||
"subscriptions": {},
|
||||
"description": "",
|
||||
"keywords": [
|
||||
""
|
||||
],
|
||||
"language": "csharp"
|
||||
}
|
45
src/checkoutservice/architect.json
Normal file
45
src/checkoutservice/architect.json
Normal file
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
"name": "architect/checkoutservice",
|
||||
"dependencies": {
|
||||
"architect/emailservice": "latest",
|
||||
"architect/paymentservice": "latest",
|
||||
"architect/shippingservice": "latest",
|
||||
"architect/currencyservice": "latest",
|
||||
"architect/productcatalogservice": "latest",
|
||||
"architect/cartservice": "latest"
|
||||
},
|
||||
"parameters": {
|
||||
"PORT": {
|
||||
"description": "port to run the server on"
|
||||
},
|
||||
"PRODUCT_CATALOG_SERVICE_ADDR": {
|
||||
"description": "host and port of the product catalog service"
|
||||
},
|
||||
"SHIPPING_SERVICE_ADDR": {
|
||||
"description": "host and port of the shipping service"
|
||||
},
|
||||
"PAYMENT_SERVICE_ADDR": {
|
||||
"description": "host and port of the payment service"
|
||||
},
|
||||
"EMAIL_SERVICE_ADDR": {
|
||||
"description": "host and port of the email service"
|
||||
},
|
||||
"CURRENCY_SERVICE_ADDR": {
|
||||
"description": "host and port of the currency service"
|
||||
},
|
||||
"CART_SERVICE_ADDR": {
|
||||
"descrption": "host and port of the cart service"
|
||||
}
|
||||
},
|
||||
"datastores": {},
|
||||
"api": {
|
||||
"type": "grpc",
|
||||
"definitions": []
|
||||
},
|
||||
"subscriptions": {},
|
||||
"description": "",
|
||||
"keywords": [
|
||||
""
|
||||
],
|
||||
"language": "go"
|
||||
}
|
20
src/currencyservice/architect.json
Normal file
20
src/currencyservice/architect.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"name": "architect/currencyservice",
|
||||
"dependencies": {},
|
||||
"parameters": {
|
||||
"PORT": {
|
||||
"description": "port to run the service on"
|
||||
}
|
||||
},
|
||||
"datastores": {},
|
||||
"api": {
|
||||
"type": "grpc",
|
||||
"definitions": []
|
||||
},
|
||||
"subscriptions": {},
|
||||
"description": "",
|
||||
"keywords": [
|
||||
""
|
||||
],
|
||||
"language": "node"
|
||||
}
|
20
src/emailservice/architect.json
Normal file
20
src/emailservice/architect.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"name": "architect/emailservice",
|
||||
"dependencies": {},
|
||||
"parameters": {
|
||||
"PORT": {
|
||||
"description": "port to run the service on"
|
||||
}
|
||||
},
|
||||
"datastores": {},
|
||||
"api": {
|
||||
"type": "grpc",
|
||||
"definitions": []
|
||||
},
|
||||
"subscriptions": {},
|
||||
"description": "",
|
||||
"keywords": [
|
||||
""
|
||||
],
|
||||
"language": "python"
|
||||
}
|
104
src/frontend/arc.env.json
Normal file
104
src/frontend/arc.env.json
Normal file
|
@ -0,0 +1,104 @@
|
|||
{
|
||||
"services": {
|
||||
"architect/adservice:latest": {
|
||||
"debug": {
|
||||
"path": "../adservice"
|
||||
},
|
||||
"parameters": {
|
||||
"PORT": "$ARC_ADSERVICE_PORT"
|
||||
}
|
||||
},
|
||||
"architect/cartservice:latest": {
|
||||
"debug": {
|
||||
"path": "../cartservice"
|
||||
},
|
||||
"parameters": {
|
||||
"LISTEN_ADDR": "$ARC_CARTSERVICE_HOST",
|
||||
"PORT": "ARC_CARTSERVICE_PORT",
|
||||
"REDIS_ADDR": "TODO (redis-cart:6379)"
|
||||
},
|
||||
"datastores": {
|
||||
"primary": {}
|
||||
}
|
||||
},
|
||||
"architect/checkoutservice:latest": {
|
||||
"debug": {
|
||||
"path": "../checkoutservice"
|
||||
},
|
||||
"parameters": {
|
||||
"PORT": "$ARC_CHECKOUTSERVICE_PORT",
|
||||
"PRODUCT_CATALOG_SERVICE_ADDR": "$ARC_PRODUCTCATALOGSERVICE_HOST:$ARC_PRODUCTCATALOGSERVICE_PORT",
|
||||
"SHIPPING_SERVICE_ADDR": "$ARC_SHIPPINGSERVICE_HOST:$ARC_SHIPPINGSERVICE_PORT",
|
||||
"PAYMENT_SERVICE_ADDR": "$ARC_PAYMENTSERVICE_HOST:$ARC_PAYMENTSERVICE_PORT",
|
||||
"EMAIL_SERVICE_ADDR": "$ARC_EMAILSERVICE_HOST:$ARC_EMAILSERVICE_PORT",
|
||||
"CURRENCY_SERVICE_ADDR": "$ARC_CURRENCYSERVICE_HOST:$ARC_CURRENCYSERVICE_PORT",
|
||||
"CART_SERVICE_ADDR": "$ARC_CARTSERVICE_HOST:$ARC_CARTSERVICE_PORT"
|
||||
}
|
||||
},
|
||||
"architect/currencyservice:latest": {
|
||||
"debug": {
|
||||
"path": "../currencyservice"
|
||||
},
|
||||
"parameters": {
|
||||
"PORT": "$ARC_CURRENCYSERVICE_PORT"
|
||||
}
|
||||
},
|
||||
"architect/emailservice:latest": {
|
||||
"debug": {
|
||||
"path": "../emailservice"
|
||||
},
|
||||
"parameters": {
|
||||
"PORT": "$ARC_EMAILSERVICE_PORT"
|
||||
}
|
||||
},
|
||||
"architect/frontend:latest": {
|
||||
"debug": {
|
||||
"path": "../frontend"
|
||||
},
|
||||
"parameters": {
|
||||
"PORT": "$ARC_FRONTEND_PORT",
|
||||
"PRODUCT_CATALOG_SERVICE_ADDR": "$ARC_PRODUCTCATALOGSERVICE_HOST:$ARC_PRODUCTCATALOGSERVICE_PORT",
|
||||
"CURRENCY_SERVICE_ADDR": "$ARC_CURRENCYSERVICE_HOST:$ARC_CURRENCYSERVICE_PORT",
|
||||
"CART_SERVICE_ADDR": "$ARC_CARTSERVICE_HOST:$ARC_CARTSERVICE_PORT",
|
||||
"RECOMMENDATION_SERVICE_ADDR": "$ARC_RECOMMENDATIONSERVICE_HOST:$ARC_RECOMMENDATIONSERVICE_PORT",
|
||||
"SHIPPING_SERVICE_ADDR": "$ARC_SHIPPINGSERVICE_HOST:$ARC_SHIPPINGSERVICE_PORT",
|
||||
"CHECKOUT_SERVICE_ADDR": "$ARC_CHECKOUTSERVICE_HOST:$ARC_CHECKOUTSERVICE_PORT",
|
||||
"AD_SERVICE_ADDR": "$ARC_ADSERVICE_HOST:$ARC_ADSERVICE_PORT"
|
||||
}
|
||||
},
|
||||
"architect/paymentservice:latest": {
|
||||
"debug": {
|
||||
"path": "../paymentservice"
|
||||
},
|
||||
"parameters": {
|
||||
"PORT": "$ARC_PAYMENTSERVICE_PORT"
|
||||
}
|
||||
},
|
||||
"architect/productcatalogservice:latest": {
|
||||
"debug": {
|
||||
"path": "../productcatalogservice"
|
||||
},
|
||||
"parameters": {
|
||||
"PORT": "$ARC_PRODUCTCATALOGSERVICE_PORT"
|
||||
}
|
||||
},
|
||||
"architect/recommendationservice:latest": {
|
||||
"debug": {
|
||||
"path": "../recommendationservice"
|
||||
},
|
||||
"parameters": {
|
||||
"PORT": "$ARC_RECOMMENDATIONSERVICE_PORT",
|
||||
"PRODUCT_CATALOG_SERVICE_ADDR": "$ARC_PRODUCTCATALOGSERVICE_HOST:$ARC_PRODUCTCATALOGSERVICE_PORT",
|
||||
"ENABLE_PROFILER": "0"
|
||||
}
|
||||
},
|
||||
"architect/shippingservice:latest": {
|
||||
"debug": {
|
||||
"path": "../shippingservice"
|
||||
},
|
||||
"parameters": {
|
||||
"PORT": "$ARC_SHIPPINGSERVICE_PORT"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
46
src/frontend/architect.json
Normal file
46
src/frontend/architect.json
Normal file
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
"name": "architect/frontend",
|
||||
"dependencies": {
|
||||
"architect/cartservice": "latest",
|
||||
"architect/recommendationservice": "latest",
|
||||
"architect/productcatalogservice": "latest",
|
||||
"architect/currencyservice": "latest",
|
||||
"architect/shippingservice": "latest",
|
||||
"architect/checkoutservice": "latest",
|
||||
"architect/adservice": "latest"
|
||||
},
|
||||
"parameters": {
|
||||
"PRODUCT_CATALOG_SERVICE_ADDR": {
|
||||
"description": "host and port of product catalog service"
|
||||
},
|
||||
"CURRENCY_SERVICE_ADDR": {
|
||||
"description": "host and port of the currency service"
|
||||
},
|
||||
"CART_SERVICE_ADDR": {
|
||||
"description": "host and port of the cart service"
|
||||
},
|
||||
"RECOMMENDATION_SERVICE_ADDR": {
|
||||
"desecription": "host and port of the recommendation service"
|
||||
},
|
||||
"SHIPPING_SERVICE_ADDR": {
|
||||
"description": "host and port of the shipping service"
|
||||
},
|
||||
"CHECKOUT_SERVICE_ADDR": {
|
||||
"description": "host and port of the checkout service"
|
||||
},
|
||||
"AD_SERVICE_ADDR": {
|
||||
"description": "host and port of the ad service"
|
||||
}
|
||||
},
|
||||
"datastores": {},
|
||||
"api": {
|
||||
"type": "grpc",
|
||||
"definitions": []
|
||||
},
|
||||
"subscriptions": {},
|
||||
"description": "",
|
||||
"keywords": [
|
||||
""
|
||||
],
|
||||
"language": "go"
|
||||
}
|
20
src/paymentservice/architect.json
Normal file
20
src/paymentservice/architect.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"name": "architect/paymentservice",
|
||||
"dependencies": {},
|
||||
"parameters": {
|
||||
"PORT": {
|
||||
"description": "port to run the service on"
|
||||
}
|
||||
},
|
||||
"datastores": {},
|
||||
"api": {
|
||||
"type": "grpc",
|
||||
"definitions": []
|
||||
},
|
||||
"subscriptions": {},
|
||||
"description": "",
|
||||
"keywords": [
|
||||
""
|
||||
],
|
||||
"language": "node"
|
||||
}
|
20
src/productcatalogservice/architect.json
Normal file
20
src/productcatalogservice/architect.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"name": "architect/productcatalogservice",
|
||||
"dependencies": {},
|
||||
"parameters": {
|
||||
"PORT": {
|
||||
"description": "port to run the service on"
|
||||
}
|
||||
},
|
||||
"datastores": {},
|
||||
"api": {
|
||||
"type": "grpc",
|
||||
"definitions": []
|
||||
},
|
||||
"subscriptions": {},
|
||||
"description": "",
|
||||
"keywords": [
|
||||
""
|
||||
],
|
||||
"language": "go"
|
||||
}
|
28
src/recommendationservice/architect.json
Normal file
28
src/recommendationservice/architect.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"name": "architect/recommendationservice",
|
||||
"dependencies": {
|
||||
"architect/productcatalogservice": "latest"
|
||||
},
|
||||
"parameters": {
|
||||
"PORT": {
|
||||
"description": "port to run the service on"
|
||||
},
|
||||
"PRODUCT_CATALOG_SERVICE_ADDR": {
|
||||
"description": "host and port of the product catalog service"
|
||||
},
|
||||
"ENABLE_PROFILER": {
|
||||
"description": "whether or not to enable the profiler"
|
||||
}
|
||||
},
|
||||
"datastores": {},
|
||||
"api": {
|
||||
"type": "grpc",
|
||||
"definitions": []
|
||||
},
|
||||
"subscriptions": {},
|
||||
"description": "",
|
||||
"keywords": [
|
||||
""
|
||||
],
|
||||
"language": "python"
|
||||
}
|
20
src/shippingservice/architect.json
Normal file
20
src/shippingservice/architect.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"name": "architect/shippingservice",
|
||||
"dependencies": {},
|
||||
"parameters": {
|
||||
"PORT": {
|
||||
"description": "port to run the service on"
|
||||
}
|
||||
},
|
||||
"datastores": {},
|
||||
"api": {
|
||||
"type": "grpc",
|
||||
"definitions": []
|
||||
},
|
||||
"subscriptions": {},
|
||||
"description": "",
|
||||
"keywords": [
|
||||
""
|
||||
],
|
||||
"language": "go"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue