Skip to content

Commit

Permalink
Merge pull request #450 from cherrycl/issue-449
Browse files Browse the repository at this point in the history
fix: Add core-keeper to the TAF compose file which using Consul as registry service
  • Loading branch information
cloudxxx8 authored Jul 30, 2024
2 parents 9f92414 + e3fb4bb commit 224bc85
Show file tree
Hide file tree
Showing 20 changed files with 390 additions and 138 deletions.
4 changes: 2 additions & 2 deletions compose-builder/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ ifeq (taf-secty, $(filter taf-secty,$(ARGS)))
COMPOSE_FILES:=$(COMPOSE_FILES) -f add-keeper.yml -f add-secure-keeper.yml
REGISTRY:=-keeper
else
COMPOSE_FILES:=$(COMPOSE_FILES) -f add-consul.yml -f add-secure-consul.yml
COMPOSE_FILES:=$(COMPOSE_FILES) -f add-consul.yml -f add-secure-consul.yml -f add-keeper.yml -f add-secure-keeper.yml
endif

asc_http_export_ext:= $(shell ZERO_TRUST="$(MAKE_ZERO_TRUST)" GEN_EXT_DIR="$(GEN_EXT_DIR)" ./gen_secure_compose_ext.sh app-http-export \
Expand Down Expand Up @@ -936,7 +936,7 @@ else
COMPOSE_FILES:=$(COMPOSE_FILES) -f add-keeper.yml
REGISTRY:=-keeper
else
COMPOSE_FILES:=$(COMPOSE_FILES) -f add-consul.yml
COMPOSE_FILES:=$(COMPOSE_FILES) -f add-consul.yml -f add-keeper.yml
endif
else
# Build compose for TAF secure performance testing (ignore all other compose file options)
Expand Down
10 changes: 0 additions & 10 deletions compose-builder/add-security-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,6 @@ services:
env_file:
- common-security.env
- common-sec-stage-gate.env
environment:
ROUTES_CORE_CONSUL_HOST: edgex-core-consul
ROUTES_CORE_DATA_HOST: edgex-core-data
ROUTES_CORE_METADATA_HOST: edgex-core-metadata
ROUTES_CORE_COMMAND_HOST: edgex-core-command
ROUTES_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
ROUTES_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
ROUTES_SYS_MGMT_AGENT_HOST: edgex-sys-mgmt-agent
ROUTES_RULES_ENGINE_HOST: edgex-kuiper
ROUTES_DEVICE_VIRTUAL_HOST: device-virtual
volumes:
# use host timezone
- /etc/localtime:/etc/localtime:ro
Expand Down
9 changes: 0 additions & 9 deletions docker-compose-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -976,15 +976,6 @@ services:
EDGEX_ADD_PROXY_ROUTE: device-rest.http://edgex-device-rest:59986
EDGEX_SECURITY_SECRET_STORE: "true"
PROXY_SETUP_HOST: edgex-security-proxy-setup
ROUTES_CORE_COMMAND_HOST: edgex-core-command
ROUTES_CORE_CONSUL_HOST: edgex-core-consul
ROUTES_CORE_DATA_HOST: edgex-core-data
ROUTES_CORE_METADATA_HOST: edgex-core-metadata
ROUTES_DEVICE_VIRTUAL_HOST: device-virtual
ROUTES_RULES_ENGINE_HOST: edgex-kuiper
ROUTES_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
ROUTES_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
ROUTES_SYS_MGMT_AGENT_HOST: edgex-sys-mgmt-agent
SECRETSTORE_HOST: edgex-vault
STAGEGATE_BOOTSTRAPPER_HOST: edgex-security-bootstrapper
STAGEGATE_BOOTSTRAPPER_STARTPORT: "54321"
Expand Down
9 changes: 0 additions & 9 deletions docker-compose-with-app-sample-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1053,15 +1053,6 @@ services:
EDGEX_ADD_PROXY_ROUTE: device-rest.http://edgex-device-rest:59986,app-sample.http://edgex-app-sample:59700
EDGEX_SECURITY_SECRET_STORE: "true"
PROXY_SETUP_HOST: edgex-security-proxy-setup
ROUTES_CORE_COMMAND_HOST: edgex-core-command
ROUTES_CORE_CONSUL_HOST: edgex-core-consul
ROUTES_CORE_DATA_HOST: edgex-core-data
ROUTES_CORE_METADATA_HOST: edgex-core-metadata
ROUTES_DEVICE_VIRTUAL_HOST: device-virtual
ROUTES_RULES_ENGINE_HOST: edgex-kuiper
ROUTES_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
ROUTES_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
ROUTES_SYS_MGMT_AGENT_HOST: edgex-sys-mgmt-agent
SECRETSTORE_HOST: edgex-vault
STAGEGATE_BOOTSTRAPPER_HOST: edgex-security-bootstrapper
STAGEGATE_BOOTSTRAPPER_STARTPORT: "54321"
Expand Down
9 changes: 0 additions & 9 deletions docker-compose-with-app-sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1053,15 +1053,6 @@ services:
EDGEX_ADD_PROXY_ROUTE: device-rest.http://edgex-device-rest:59986,app-sample.http://edgex-app-sample:59700
EDGEX_SECURITY_SECRET_STORE: "true"
PROXY_SETUP_HOST: edgex-security-proxy-setup
ROUTES_CORE_COMMAND_HOST: edgex-core-command
ROUTES_CORE_CONSUL_HOST: edgex-core-consul
ROUTES_CORE_DATA_HOST: edgex-core-data
ROUTES_CORE_METADATA_HOST: edgex-core-metadata
ROUTES_DEVICE_VIRTUAL_HOST: device-virtual
ROUTES_RULES_ENGINE_HOST: edgex-kuiper
ROUTES_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
ROUTES_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
ROUTES_SYS_MGMT_AGENT_HOST: edgex-sys-mgmt-agent
SECRETSTORE_HOST: edgex-vault
STAGEGATE_BOOTSTRAPPER_HOST: edgex-security-bootstrapper
STAGEGATE_BOOTSTRAPPER_STARTPORT: "54321"
Expand Down
9 changes: 0 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -976,15 +976,6 @@ services:
EDGEX_ADD_PROXY_ROUTE: device-rest.http://edgex-device-rest:59986
EDGEX_SECURITY_SECRET_STORE: "true"
PROXY_SETUP_HOST: edgex-security-proxy-setup
ROUTES_CORE_COMMAND_HOST: edgex-core-command
ROUTES_CORE_CONSUL_HOST: edgex-core-consul
ROUTES_CORE_DATA_HOST: edgex-core-data
ROUTES_CORE_METADATA_HOST: edgex-core-metadata
ROUTES_DEVICE_VIRTUAL_HOST: device-virtual
ROUTES_RULES_ENGINE_HOST: edgex-kuiper
ROUTES_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
ROUTES_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
ROUTES_SYS_MGMT_AGENT_HOST: edgex-sys-mgmt-agent
SECRETSTORE_HOST: edgex-vault
STAGEGATE_BOOTSTRAPPER_HOST: edgex-security-bootstrapper
STAGEGATE_BOOTSTRAPPER_STARTPORT: "54321"
Expand Down
77 changes: 68 additions & 9 deletions taf/docker-compose-taf-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,74 @@ services:
bind:
selinux: z
create_host_path: true
keeper:
command:
- /core-keeper
container_name: edgex-core-keeper
depends_on:
database:
condition: service_started
required: true
security-bootstrapper:
condition: service_started
required: true
security-secretstore-setup:
condition: service_started
required: true
environment:
DATABASE_HOST: edgex-redis
EDGEX_SECURITY_SECRET_STORE: "true"
MESSAGEBUS_HOST: edgex-redis
PROXY_SETUP_HOST: edgex-security-proxy-setup
SECRETSTORE_HOST: edgex-vault
SERVICE_HOST: edgex-core-keeper
STAGEGATE_BOOTSTRAPPER_HOST: edgex-security-bootstrapper
STAGEGATE_BOOTSTRAPPER_STARTPORT: "54321"
STAGEGATE_DATABASE_HOST: edgex-redis
STAGEGATE_DATABASE_PORT: "6379"
STAGEGATE_DATABASE_READYPORT: "6379"
STAGEGATE_PROXYSETUP_READYPORT: "54325"
STAGEGATE_READY_TORUNPORT: "54329"
STAGEGATE_REGISTRY_HOST: edgex-core-consul
STAGEGATE_REGISTRY_PORT: "8500"
STAGEGATE_REGISTRY_READYPORT: "54324"
STAGEGATE_SECRETSTORESETUP_HOST: edgex-security-secretstore-setup
STAGEGATE_SECRETSTORESETUP_TOKENS_READYPORT: "54322"
STAGEGATE_WAITFOR_TIMEOUT: 60s
hostname: edgex-core-keeper
image: nexus3.edgexfoundry.org:10004/core-keeper-arm64:latest
networks:
edgex-network: null
ports:
- mode: ingress
host_ip: 127.0.0.1
target: 59890
published: "59890"
protocol: tcp
read_only: true
restart: always
security_opt:
- no-new-privileges:true
user: 2002:2001
volumes:
- type: bind
source: /etc/localtime
target: /etc/localtime
read_only: true
bind:
create_host_path: true
- type: volume
source: edgex-init
target: /edgex-init
read_only: true
volume: {}
- type: bind
source: /tmp/edgex/secrets/core-keeper
target: /tmp/edgex/secrets/core-keeper
read_only: true
bind:
selinux: z
create_host_path: true
modbus-simulator:
container_name: edgex-modbus-simulator
hostname: edgex-modbus-simulator
Expand Down Expand Up @@ -1675,15 +1743,6 @@ services:
EDGEX_ADD_PROXY_ROUTE: device-modbus.http://edgex-device-modbus:59901
EDGEX_SECURITY_SECRET_STORE: "true"
PROXY_SETUP_HOST: edgex-security-proxy-setup
ROUTES_CORE_COMMAND_HOST: edgex-core-command
ROUTES_CORE_CONSUL_HOST: edgex-core-consul
ROUTES_CORE_DATA_HOST: edgex-core-data
ROUTES_CORE_METADATA_HOST: edgex-core-metadata
ROUTES_DEVICE_VIRTUAL_HOST: device-virtual
ROUTES_RULES_ENGINE_HOST: edgex-kuiper
ROUTES_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
ROUTES_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
ROUTES_SYS_MGMT_AGENT_HOST: edgex-sys-mgmt-agent
SECRETSTORE_HOST: edgex-vault
STAGEGATE_BOOTSTRAPPER_HOST: edgex-security-bootstrapper
STAGEGATE_BOOTSTRAPPER_STARTPORT: "54321"
Expand Down
9 changes: 0 additions & 9 deletions taf/docker-compose-taf-keeper-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1662,15 +1662,6 @@ services:
EDGEX_ADD_PROXY_ROUTE: device-modbus.http://edgex-device-modbus:59901
EDGEX_SECURITY_SECRET_STORE: "true"
PROXY_SETUP_HOST: edgex-security-proxy-setup
ROUTES_CORE_COMMAND_HOST: edgex-core-command
ROUTES_CORE_CONSUL_HOST: edgex-core-consul
ROUTES_CORE_DATA_HOST: edgex-core-data
ROUTES_CORE_METADATA_HOST: edgex-core-metadata
ROUTES_DEVICE_VIRTUAL_HOST: device-virtual
ROUTES_RULES_ENGINE_HOST: edgex-kuiper
ROUTES_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
ROUTES_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
ROUTES_SYS_MGMT_AGENT_HOST: edgex-sys-mgmt-agent
SECRETSTORE_HOST: edgex-vault
STAGEGATE_BOOTSTRAPPER_HOST: edgex-security-bootstrapper
STAGEGATE_BOOTSTRAPPER_STARTPORT: "54321"
Expand Down
9 changes: 0 additions & 9 deletions taf/docker-compose-taf-keeper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1662,15 +1662,6 @@ services:
EDGEX_ADD_PROXY_ROUTE: device-modbus.http://edgex-device-modbus:59901
EDGEX_SECURITY_SECRET_STORE: "true"
PROXY_SETUP_HOST: edgex-security-proxy-setup
ROUTES_CORE_COMMAND_HOST: edgex-core-command
ROUTES_CORE_CONSUL_HOST: edgex-core-consul
ROUTES_CORE_DATA_HOST: edgex-core-data
ROUTES_CORE_METADATA_HOST: edgex-core-metadata
ROUTES_DEVICE_VIRTUAL_HOST: device-virtual
ROUTES_RULES_ENGINE_HOST: edgex-kuiper
ROUTES_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
ROUTES_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
ROUTES_SYS_MGMT_AGENT_HOST: edgex-sys-mgmt-agent
SECRETSTORE_HOST: edgex-vault
STAGEGATE_BOOTSTRAPPER_HOST: edgex-security-bootstrapper
STAGEGATE_BOOTSTRAPPER_STARTPORT: "54321"
Expand Down
77 changes: 68 additions & 9 deletions taf/docker-compose-taf-mqtt-bus-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1341,6 +1341,74 @@ services:
bind:
selinux: z
create_host_path: true
keeper:
command:
- /core-keeper
container_name: edgex-core-keeper
depends_on:
database:
condition: service_started
required: true
security-bootstrapper:
condition: service_started
required: true
security-secretstore-setup:
condition: service_started
required: true
environment:
DATABASE_HOST: edgex-redis
EDGEX_SECURITY_SECRET_STORE: "true"
MESSAGEBUS_HOST: edgex-redis
PROXY_SETUP_HOST: edgex-security-proxy-setup
SECRETSTORE_HOST: edgex-vault
SERVICE_HOST: edgex-core-keeper
STAGEGATE_BOOTSTRAPPER_HOST: edgex-security-bootstrapper
STAGEGATE_BOOTSTRAPPER_STARTPORT: "54321"
STAGEGATE_DATABASE_HOST: edgex-redis
STAGEGATE_DATABASE_PORT: "6379"
STAGEGATE_DATABASE_READYPORT: "6379"
STAGEGATE_PROXYSETUP_READYPORT: "54325"
STAGEGATE_READY_TORUNPORT: "54329"
STAGEGATE_REGISTRY_HOST: edgex-core-consul
STAGEGATE_REGISTRY_PORT: "8500"
STAGEGATE_REGISTRY_READYPORT: "54324"
STAGEGATE_SECRETSTORESETUP_HOST: edgex-security-secretstore-setup
STAGEGATE_SECRETSTORESETUP_TOKENS_READYPORT: "54322"
STAGEGATE_WAITFOR_TIMEOUT: 60s
hostname: edgex-core-keeper
image: nexus3.edgexfoundry.org:10004/core-keeper-arm64:latest
networks:
edgex-network: null
ports:
- mode: ingress
host_ip: 127.0.0.1
target: 59890
published: "59890"
protocol: tcp
read_only: true
restart: always
security_opt:
- no-new-privileges:true
user: 2002:2001
volumes:
- type: bind
source: /etc/localtime
target: /etc/localtime
read_only: true
bind:
create_host_path: true
- type: volume
source: edgex-init
target: /edgex-init
read_only: true
volume: {}
- type: bind
source: /tmp/edgex/secrets/core-keeper
target: /tmp/edgex/secrets/core-keeper
read_only: true
bind:
selinux: z
create_host_path: true
modbus-simulator:
container_name: edgex-modbus-simulator
hostname: edgex-modbus-simulator
Expand Down Expand Up @@ -1740,15 +1808,6 @@ services:
EDGEX_ADD_PROXY_ROUTE: device-modbus.http://edgex-device-modbus:59901
EDGEX_SECURITY_SECRET_STORE: "true"
PROXY_SETUP_HOST: edgex-security-proxy-setup
ROUTES_CORE_COMMAND_HOST: edgex-core-command
ROUTES_CORE_CONSUL_HOST: edgex-core-consul
ROUTES_CORE_DATA_HOST: edgex-core-data
ROUTES_CORE_METADATA_HOST: edgex-core-metadata
ROUTES_DEVICE_VIRTUAL_HOST: device-virtual
ROUTES_RULES_ENGINE_HOST: edgex-kuiper
ROUTES_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
ROUTES_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
ROUTES_SYS_MGMT_AGENT_HOST: edgex-sys-mgmt-agent
SECRETSTORE_HOST: edgex-vault
STAGEGATE_BOOTSTRAPPER_HOST: edgex-security-bootstrapper
STAGEGATE_BOOTSTRAPPER_STARTPORT: "54321"
Expand Down
9 changes: 0 additions & 9 deletions taf/docker-compose-taf-mqtt-bus-keeper-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1727,15 +1727,6 @@ services:
EDGEX_ADD_PROXY_ROUTE: device-modbus.http://edgex-device-modbus:59901
EDGEX_SECURITY_SECRET_STORE: "true"
PROXY_SETUP_HOST: edgex-security-proxy-setup
ROUTES_CORE_COMMAND_HOST: edgex-core-command
ROUTES_CORE_CONSUL_HOST: edgex-core-consul
ROUTES_CORE_DATA_HOST: edgex-core-data
ROUTES_CORE_METADATA_HOST: edgex-core-metadata
ROUTES_DEVICE_VIRTUAL_HOST: device-virtual
ROUTES_RULES_ENGINE_HOST: edgex-kuiper
ROUTES_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
ROUTES_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
ROUTES_SYS_MGMT_AGENT_HOST: edgex-sys-mgmt-agent
SECRETSTORE_HOST: edgex-vault
STAGEGATE_BOOTSTRAPPER_HOST: edgex-security-bootstrapper
STAGEGATE_BOOTSTRAPPER_STARTPORT: "54321"
Expand Down
9 changes: 0 additions & 9 deletions taf/docker-compose-taf-mqtt-bus-keeper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1727,15 +1727,6 @@ services:
EDGEX_ADD_PROXY_ROUTE: device-modbus.http://edgex-device-modbus:59901
EDGEX_SECURITY_SECRET_STORE: "true"
PROXY_SETUP_HOST: edgex-security-proxy-setup
ROUTES_CORE_COMMAND_HOST: edgex-core-command
ROUTES_CORE_CONSUL_HOST: edgex-core-consul
ROUTES_CORE_DATA_HOST: edgex-core-data
ROUTES_CORE_METADATA_HOST: edgex-core-metadata
ROUTES_DEVICE_VIRTUAL_HOST: device-virtual
ROUTES_RULES_ENGINE_HOST: edgex-kuiper
ROUTES_SUPPORT_NOTIFICATIONS_HOST: edgex-support-notifications
ROUTES_SUPPORT_SCHEDULER_HOST: edgex-support-scheduler
ROUTES_SYS_MGMT_AGENT_HOST: edgex-sys-mgmt-agent
SECRETSTORE_HOST: edgex-vault
STAGEGATE_BOOTSTRAPPER_HOST: edgex-security-bootstrapper
STAGEGATE_BOOTSTRAPPER_STARTPORT: "54321"
Expand Down
Loading

0 comments on commit 224bc85

Please sign in to comment.