From 5303deb521a634b30546ffea7daff71d5916b203 Mon Sep 17 00:00:00 2001 From: Ryan Cahill Date: Wed, 4 Dec 2019 15:40:05 -0500 Subject: [PATCH] adding architect json files and env config --- src/adservice/architect.json | 20 +++++ src/cartservice/architect.json | 31 +++++++ src/checkoutservice/architect.json | 45 ++++++++++ src/currencyservice/architect.json | 20 +++++ src/emailservice/architect.json | 20 +++++ src/frontend/arc.env.json | 104 +++++++++++++++++++++++ src/frontend/architect.json | 46 ++++++++++ src/paymentservice/architect.json | 20 +++++ src/productcatalogservice/architect.json | 20 +++++ src/recommendationservice/architect.json | 28 ++++++ src/shippingservice/architect.json | 20 +++++ 11 files changed, 374 insertions(+) create mode 100644 src/adservice/architect.json create mode 100644 src/cartservice/architect.json create mode 100644 src/checkoutservice/architect.json create mode 100644 src/currencyservice/architect.json create mode 100644 src/emailservice/architect.json create mode 100644 src/frontend/arc.env.json create mode 100644 src/frontend/architect.json create mode 100644 src/paymentservice/architect.json create mode 100644 src/productcatalogservice/architect.json create mode 100644 src/recommendationservice/architect.json create mode 100644 src/shippingservice/architect.json diff --git a/src/adservice/architect.json b/src/adservice/architect.json new file mode 100644 index 0000000..14fa7a3 --- /dev/null +++ b/src/adservice/architect.json @@ -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" +} diff --git a/src/cartservice/architect.json b/src/cartservice/architect.json new file mode 100644 index 0000000..1028784 --- /dev/null +++ b/src/cartservice/architect.json @@ -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" +} diff --git a/src/checkoutservice/architect.json b/src/checkoutservice/architect.json new file mode 100644 index 0000000..c0f9528 --- /dev/null +++ b/src/checkoutservice/architect.json @@ -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" +} diff --git a/src/currencyservice/architect.json b/src/currencyservice/architect.json new file mode 100644 index 0000000..cba73c4 --- /dev/null +++ b/src/currencyservice/architect.json @@ -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" +} diff --git a/src/emailservice/architect.json b/src/emailservice/architect.json new file mode 100644 index 0000000..8439472 --- /dev/null +++ b/src/emailservice/architect.json @@ -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" +} diff --git a/src/frontend/arc.env.json b/src/frontend/arc.env.json new file mode 100644 index 0000000..cb956cb --- /dev/null +++ b/src/frontend/arc.env.json @@ -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" + } + } + } +} diff --git a/src/frontend/architect.json b/src/frontend/architect.json new file mode 100644 index 0000000..f89f195 --- /dev/null +++ b/src/frontend/architect.json @@ -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" +} diff --git a/src/paymentservice/architect.json b/src/paymentservice/architect.json new file mode 100644 index 0000000..284cb44 --- /dev/null +++ b/src/paymentservice/architect.json @@ -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" +} diff --git a/src/productcatalogservice/architect.json b/src/productcatalogservice/architect.json new file mode 100644 index 0000000..3584b0d --- /dev/null +++ b/src/productcatalogservice/architect.json @@ -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" +} diff --git a/src/recommendationservice/architect.json b/src/recommendationservice/architect.json new file mode 100644 index 0000000..5d8bdac --- /dev/null +++ b/src/recommendationservice/architect.json @@ -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" +} diff --git a/src/shippingservice/architect.json b/src/shippingservice/architect.json new file mode 100644 index 0000000..5f57dea --- /dev/null +++ b/src/shippingservice/architect.json @@ -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" +}