环境:mac M1
安装部署:docker-compose
lumingming@lumingmingdeMacBook-Pro dockerCompose % ls
docker-compose.yml edgex-compose
lumingming@lumingmingdeMacBook-Pro dockerCompose % pwd
/Users/lumingming/dockerCompose
lumingming@lumingmingdeMacBook-Pro dockerCompose % docker-compose up -d
出现镜像下载问题重复执行上述命令直到成功。。
curl -X PUT -d '{"Int16":"42", "EnableRandomization_Int16":"false"}' http://localhost:59882/api/v2/device/name/Random-Integer-Device/WriteInt16Value
按需配置docker-comose配置
app-service-mqtt: container_name: edgex-app-mqtt depends_on: - consul - data 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 DATABASES_PRIMARY_HOST: edgex-redis EDGEX_PROFILE: mqtt-export EDGEX_SECURITY_SECRET_STORE: "false" MESSAGEQUEUE_HOST: edgex-redis REGISTRY_HOST: edgex-core-consul SERVICE_HOST: edgex-app-mqtt TRIGGER_EDGEXMESSAGEBUS_PUBLISHHOST_HOST: edgex-redis TRIGGER_EDGEXMESSAGEBUS_SUBSCRIBEHOST_HOST: edgex-redis WRITABLE_PIPELINE_FUNCTIONS_MQTTEXPORT_PARAMETERS_BROKERADDRESS: tcp://broker.mqttdashboard.com:1883 WRITABLE_PIPELINE_FUNCTIONS_MQTTEXPORT_PARAMETERS_TOPIC: EdgeXEvents hostname: edgex-app-mqtt image: edgexfoundry/app-service-configurable:2.0.0 networks: edgex-network: {} ports: - 127.0.0.1:59702:59702/tcp read_only: true security_opt: - no-new-privileges:true user: 2002:2001
导入到公共服务mq并查看
太简单,移步Introduction - EdgeX Foundry Documentation