Skip to content

Commit

Permalink
Merge pull request #352 from lenny-intel/common-env-overrides
Browse files Browse the repository at this point in the history
feat: Add common environment overrides to Common Config service
  • Loading branch information
cloudxxx8 authored Mar 16, 2023
2 parents b680781 + 196c5b7 commit c175a8e
Show file tree
Hide file tree
Showing 21 changed files with 467 additions and 142 deletions.
9 changes: 7 additions & 2 deletions compose-builder/docker-compose-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,13 @@ services:
read_only: true
networks:
- edgex-network
env_file:
- common.env
environment:
EDGEX_SECURITY_SECRET_STORE: false
ALL_SERVICES_REGISTRY_HOST: edgex-core-consul
ALL_SERVICES_DATABASE_HOST: edgex-redis
ALL_SERVICES_MESSAGEBUS_HOST: edgex-redis
APP_SERVICES_CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
DEVICE_SERVICES_CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
depends_on:
- consul
security_opt:
Expand Down
30 changes: 23 additions & 7 deletions docker-compose-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,17 +195,15 @@ services:
entrypoint:
- /edgex-init/ready_to_run_wait_install.sh
environment:
ALL_SERVICES_DATABASE_HOST: edgex-redis
ALL_SERVICES_MESSAGEBUS_HOST: edgex-redis
ALL_SERVICES_REGISTRY_HOST: edgex-core-consul
API_GATEWAY_HOST: edgex-kong
API_GATEWAY_STATUS_PORT: "8100"
CLIENTS_CORE_COMMAND_HOST: edgex-core-command
CLIENTS_CORE_DATA_HOST: edgex-core-data
CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
CLIENTS_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
CLIENTS_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
DATABASE_HOST: edgex-redis
APP_SERVICES_CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
DEVICE_SERVICES_CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
EDGEX_SECURITY_SECRET_STORE: "true"
PROXY_SETUP_HOST: edgex-security-proxy-setup
REGISTRY_HOST: edgex-core-consul
SECRETSTORE_HOST: edgex-vault
STAGEGATE_BOOTSTRAPPER_HOST: edgex-security-bootstrapper
STAGEGATE_BOOTSTRAPPER_STARTPORT: "54321"
Expand Down Expand Up @@ -1046,6 +1044,10 @@ services:
source: kuiper-data
target: /kuiper/data
volume: {}
- type: volume
source: kuiper-etc
target: /kuiper/etc
volume: {}
- type: volume
source: kuiper-connections
target: /kuiper/etc/connections
Expand All @@ -1054,6 +1056,14 @@ services:
source: kuiper-sources
target: /kuiper/etc/sources
volume: {}
- type: volume
source: kuiper-log
target: /kuiper/log
volume: {}
- type: volume
source: kuiper-plugins
target: /kuiper/plugins
volume: {}
scheduler:
command:
- /support-scheduler
Expand Down Expand Up @@ -1336,6 +1346,12 @@ volumes:
name: edgex_kuiper-connections
kuiper-data:
name: edgex_kuiper-data
kuiper-etc:
name: edgex_kuiper-etc
kuiper-log:
name: edgex_kuiper-log
kuiper-plugins:
name: edgex_kuiper-plugins
kuiper-sources:
name: edgex_kuiper-sources
nginx-templates:
Expand Down
30 changes: 23 additions & 7 deletions docker-compose-no-secty-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,12 @@ services:
consul:
condition: service_started
environment:
CLIENTS_CORE_COMMAND_HOST: edgex-core-command
CLIENTS_CORE_DATA_HOST: edgex-core-data
CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
CLIENTS_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
CLIENTS_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
DATABASE_HOST: edgex-redis
ALL_SERVICES_DATABASE_HOST: edgex-redis
ALL_SERVICES_MESSAGEBUS_HOST: edgex-redis
ALL_SERVICES_REGISTRY_HOST: edgex-core-consul
APP_SERVICES_CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
DEVICE_SERVICES_CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
EDGEX_SECURITY_SECRET_STORE: "false"
REGISTRY_HOST: edgex-core-consul
hostname: edgex-core-common-config-bootstrapper
image: nexus3.edgexfoundry.org:10004/core-common-config-bootstrapper-arm64:latest
networks:
Expand Down Expand Up @@ -390,6 +388,18 @@ services:
source: kuiper-data
target: /kuiper/data
volume: {}
- type: volume
source: kuiper-etc
target: /kuiper/etc
volume: {}
- type: volume
source: kuiper-log
target: /kuiper/log
volume: {}
- type: volume
source: kuiper-plugins
target: /kuiper/plugins
volume: {}
scheduler:
container_name: edgex-support-scheduler
depends_on:
Expand Down Expand Up @@ -457,3 +467,9 @@ volumes:
name: edgex_db-data
kuiper-data:
name: edgex_kuiper-data
kuiper-etc:
name: edgex_kuiper-etc
kuiper-log:
name: edgex_kuiper-log
kuiper-plugins:
name: edgex_kuiper-plugins
30 changes: 23 additions & 7 deletions docker-compose-no-secty-with-app-sample-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,12 @@ services:
consul:
condition: service_started
environment:
CLIENTS_CORE_COMMAND_HOST: edgex-core-command
CLIENTS_CORE_DATA_HOST: edgex-core-data
CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
CLIENTS_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
CLIENTS_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
DATABASE_HOST: edgex-redis
ALL_SERVICES_DATABASE_HOST: edgex-redis
ALL_SERVICES_MESSAGEBUS_HOST: edgex-redis
ALL_SERVICES_REGISTRY_HOST: edgex-core-consul
APP_SERVICES_CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
DEVICE_SERVICES_CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
EDGEX_SECURITY_SECRET_STORE: "false"
REGISTRY_HOST: edgex-core-consul
hostname: edgex-core-common-config-bootstrapper
image: nexus3.edgexfoundry.org:10004/core-common-config-bootstrapper-arm64:latest
networks:
Expand Down Expand Up @@ -424,6 +422,18 @@ services:
source: kuiper-data
target: /kuiper/data
volume: {}
- type: volume
source: kuiper-etc
target: /kuiper/etc
volume: {}
- type: volume
source: kuiper-log
target: /kuiper/log
volume: {}
- type: volume
source: kuiper-plugins
target: /kuiper/plugins
volume: {}
scheduler:
container_name: edgex-support-scheduler
depends_on:
Expand Down Expand Up @@ -491,3 +501,9 @@ volumes:
name: edgex_db-data
kuiper-data:
name: edgex_kuiper-data
kuiper-etc:
name: edgex_kuiper-etc
kuiper-log:
name: edgex_kuiper-log
kuiper-plugins:
name: edgex_kuiper-plugins
30 changes: 23 additions & 7 deletions docker-compose-no-secty-with-app-sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,12 @@ services:
consul:
condition: service_started
environment:
CLIENTS_CORE_COMMAND_HOST: edgex-core-command
CLIENTS_CORE_DATA_HOST: edgex-core-data
CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
CLIENTS_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
CLIENTS_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
DATABASE_HOST: edgex-redis
ALL_SERVICES_DATABASE_HOST: edgex-redis
ALL_SERVICES_MESSAGEBUS_HOST: edgex-redis
ALL_SERVICES_REGISTRY_HOST: edgex-core-consul
APP_SERVICES_CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
DEVICE_SERVICES_CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
EDGEX_SECURITY_SECRET_STORE: "false"
REGISTRY_HOST: edgex-core-consul
hostname: edgex-core-common-config-bootstrapper
image: nexus3.edgexfoundry.org:10004/core-common-config-bootstrapper:latest
networks:
Expand Down Expand Up @@ -424,6 +422,18 @@ services:
source: kuiper-data
target: /kuiper/data
volume: {}
- type: volume
source: kuiper-etc
target: /kuiper/etc
volume: {}
- type: volume
source: kuiper-log
target: /kuiper/log
volume: {}
- type: volume
source: kuiper-plugins
target: /kuiper/plugins
volume: {}
scheduler:
container_name: edgex-support-scheduler
depends_on:
Expand Down Expand Up @@ -491,3 +501,9 @@ volumes:
name: edgex_db-data
kuiper-data:
name: edgex_kuiper-data
kuiper-etc:
name: edgex_kuiper-etc
kuiper-log:
name: edgex_kuiper-log
kuiper-plugins:
name: edgex_kuiper-plugins
30 changes: 23 additions & 7 deletions docker-compose-no-secty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,12 @@ services:
consul:
condition: service_started
environment:
CLIENTS_CORE_COMMAND_HOST: edgex-core-command
CLIENTS_CORE_DATA_HOST: edgex-core-data
CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
CLIENTS_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
CLIENTS_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
DATABASE_HOST: edgex-redis
ALL_SERVICES_DATABASE_HOST: edgex-redis
ALL_SERVICES_MESSAGEBUS_HOST: edgex-redis
ALL_SERVICES_REGISTRY_HOST: edgex-core-consul
APP_SERVICES_CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
DEVICE_SERVICES_CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
EDGEX_SECURITY_SECRET_STORE: "false"
REGISTRY_HOST: edgex-core-consul
hostname: edgex-core-common-config-bootstrapper
image: nexus3.edgexfoundry.org:10004/core-common-config-bootstrapper:latest
networks:
Expand Down Expand Up @@ -390,6 +388,18 @@ services:
source: kuiper-data
target: /kuiper/data
volume: {}
- type: volume
source: kuiper-etc
target: /kuiper/etc
volume: {}
- type: volume
source: kuiper-log
target: /kuiper/log
volume: {}
- type: volume
source: kuiper-plugins
target: /kuiper/plugins
volume: {}
scheduler:
container_name: edgex-support-scheduler
depends_on:
Expand Down Expand Up @@ -457,3 +467,9 @@ volumes:
name: edgex_db-data
kuiper-data:
name: edgex_kuiper-data
kuiper-etc:
name: edgex_kuiper-etc
kuiper-log:
name: edgex_kuiper-log
kuiper-plugins:
name: edgex_kuiper-plugins
30 changes: 23 additions & 7 deletions docker-compose-with-app-sample-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,17 +269,15 @@ services:
entrypoint:
- /edgex-init/ready_to_run_wait_install.sh
environment:
ALL_SERVICES_DATABASE_HOST: edgex-redis
ALL_SERVICES_MESSAGEBUS_HOST: edgex-redis
ALL_SERVICES_REGISTRY_HOST: edgex-core-consul
API_GATEWAY_HOST: edgex-kong
API_GATEWAY_STATUS_PORT: "8100"
CLIENTS_CORE_COMMAND_HOST: edgex-core-command
CLIENTS_CORE_DATA_HOST: edgex-core-data
CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
CLIENTS_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
CLIENTS_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
DATABASE_HOST: edgex-redis
APP_SERVICES_CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
DEVICE_SERVICES_CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
EDGEX_SECURITY_SECRET_STORE: "true"
PROXY_SETUP_HOST: edgex-security-proxy-setup
REGISTRY_HOST: edgex-core-consul
SECRETSTORE_HOST: edgex-vault
STAGEGATE_BOOTSTRAPPER_HOST: edgex-security-bootstrapper
STAGEGATE_BOOTSTRAPPER_STARTPORT: "54321"
Expand Down Expand Up @@ -1120,6 +1118,10 @@ services:
source: kuiper-data
target: /kuiper/data
volume: {}
- type: volume
source: kuiper-etc
target: /kuiper/etc
volume: {}
- type: volume
source: kuiper-connections
target: /kuiper/etc/connections
Expand All @@ -1128,6 +1130,14 @@ services:
source: kuiper-sources
target: /kuiper/etc/sources
volume: {}
- type: volume
source: kuiper-log
target: /kuiper/log
volume: {}
- type: volume
source: kuiper-plugins
target: /kuiper/plugins
volume: {}
scheduler:
command:
- /support-scheduler
Expand Down Expand Up @@ -1410,6 +1420,12 @@ volumes:
name: edgex_kuiper-connections
kuiper-data:
name: edgex_kuiper-data
kuiper-etc:
name: edgex_kuiper-etc
kuiper-log:
name: edgex_kuiper-log
kuiper-plugins:
name: edgex_kuiper-plugins
kuiper-sources:
name: edgex_kuiper-sources
nginx-templates:
Expand Down
30 changes: 23 additions & 7 deletions docker-compose-with-app-sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,17 +269,15 @@ services:
entrypoint:
- /edgex-init/ready_to_run_wait_install.sh
environment:
ALL_SERVICES_DATABASE_HOST: edgex-redis
ALL_SERVICES_MESSAGEBUS_HOST: edgex-redis
ALL_SERVICES_REGISTRY_HOST: edgex-core-consul
API_GATEWAY_HOST: edgex-kong
API_GATEWAY_STATUS_PORT: "8100"
CLIENTS_CORE_COMMAND_HOST: edgex-core-command
CLIENTS_CORE_DATA_HOST: edgex-core-data
CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
CLIENTS_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
CLIENTS_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
DATABASE_HOST: edgex-redis
APP_SERVICES_CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
DEVICE_SERVICES_CLIENTS_CORE_METADATA_HOST: edgex-core-metadata
EDGEX_SECURITY_SECRET_STORE: "true"
PROXY_SETUP_HOST: edgex-security-proxy-setup
REGISTRY_HOST: edgex-core-consul
SECRETSTORE_HOST: edgex-vault
STAGEGATE_BOOTSTRAPPER_HOST: edgex-security-bootstrapper
STAGEGATE_BOOTSTRAPPER_STARTPORT: "54321"
Expand Down Expand Up @@ -1120,6 +1118,10 @@ services:
source: kuiper-data
target: /kuiper/data
volume: {}
- type: volume
source: kuiper-etc
target: /kuiper/etc
volume: {}
- type: volume
source: kuiper-connections
target: /kuiper/etc/connections
Expand All @@ -1128,6 +1130,14 @@ services:
source: kuiper-sources
target: /kuiper/etc/sources
volume: {}
- type: volume
source: kuiper-log
target: /kuiper/log
volume: {}
- type: volume
source: kuiper-plugins
target: /kuiper/plugins
volume: {}
scheduler:
command:
- /support-scheduler
Expand Down Expand Up @@ -1410,6 +1420,12 @@ volumes:
name: edgex_kuiper-connections
kuiper-data:
name: edgex_kuiper-data
kuiper-etc:
name: edgex_kuiper-etc
kuiper-log:
name: edgex_kuiper-log
kuiper-plugins:
name: edgex_kuiper-plugins
kuiper-sources:
name: edgex_kuiper-sources
nginx-templates:
Expand Down
Loading

0 comments on commit c175a8e

Please sign in to comment.