gen [options]
Generates temporary single file compose file (`docker-compose.yml`) as specified by:
Options:
no-secty: Generates non-secure compose,
otherwise generates secure compose file
arm64: Generates compose file using ARM64 images
dev: Generates using local built images from edgex-go repo
'make docker' creates local docker images
tagged with '0.0.0-dev'
app-dev: Generates using local built images from application
service repos
'make docker' creates local docker images
tagged with '0.0.0-dev`
device-dev: Generates using local built images from device service repos
'make docker' creates local docker images
tagged with '0.0.0-dev'
ui-dev: Generates using local built images from edgex-ui-go repo
'make docker' creates local docker image tagged with '0.0.0-dev'
delayed-start: Generates compose file with delayed start services- spire
related services and spiffe-token-provider service included
ds-modbus: Generates compose file with device-modbus included
ds-bacnet-ip: Generates compose file with device-bacnet-ip included
ds-bacnet-mstp: Generates compose file with device-bacnet-mstp included
ds-onvif-camera: Generates compose file with device-onvif-camera included
ds-usb-camera: Generates compose file with device-usb-camera included
ds-mqtt: Generates compose file with device-mqtt included
ds-rest: Generates compose file with device-rest included
ds-snmp: Generates compose file with device-snmp included
ds-virtual: Generates compose file with device-virtual included
ds-coap: Generates compose file with device-coap included
ds-gpio: Generates compose file with device-gpio included
ds-uart: Generates compose file with device-uart included
ds-llrp: Generates compose file with device-rfid-llrp included
modbus-sim: Generates compose file with ModBus simulator included
asc-http: Generates compose file with App Service HTTP Export included
asc-mqtt: Generates compose file with App Service MQTT Export included
asc-metrics: Generates compose file with App Service
Metrics InfluxDb included
asc-sample: Generates compose file with App Service Sample included
as-llrp: Generates compose file with App RFID LLRP Inventory included
as-record-replay: Generates compose file with App Record & Replay included
asc-ex-mqtt: Generates compose file with App Service
External MQTT Trigger included
mqtt-broker: Generates compose file with a MQTT Broker service included
mqtt-bus: Generates compose file with services configured
for MQTT Message Bus
The MQTT Broker service is also included.
mqtt-verbose Enables MQTT Broker verbose logging.
nanomq: ** Experimental **
Generates compose file with NonoMQ MQTT broker
when mqtt-broker or mqtt-bus are specified
Not valid in secure mode when uses with mqtt-bus
nats-bus: Generates compose file with services
configured for NAT Message Bus
The NATS Server service is also included.
[root@edgex mqtt-device]# git clone https://github.com/edgexfoundry/edgex-compose.git
Cloning into 'edgex-compose'...
remote: Enumerating objects: 4779, done.
remote: Counting objects: 100% (2916/2916), done.
remote: Compressing objects: 100% (173/173), done.
remote: Total 4779 (delta 2831), reused 2804 (delta 2741), pack-reused 1863
Receiving objects: 100% (4779/4779), 1.22 MiB | 450.00 KiB/s, done.
Resolving deltas: 100% (4042/4042), done.[root@edgex mqtt-device]# ll
total 4
drwxr-xr-x. 6 root root 4096 Feb 1 04:10 edgex-compose
[root@edgex mqtt-device]# cd edgex-compose/
[root@edgex edgex-compose]# git checkout v3.1
Note: checking out 'v3.1'.
You are in'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at 488a3fe... Merge pull request #424 from lenny-intel/device-mqtt-secure-mode-napa[root@edgex edgex-compose]# cd compose-builder/
[root@edgex compose-builder]# make gen ds-virtual no-secty
echo MQTT_VERBOSE=MQTT_VERBOSE=
docker compose -p edgex -f docker-compose-base.yml -f add-device-virtual.yml convert > docker-compose.yml
rm-rf ./gen_ext_compose
[root@edgex compose-builder]# ls | grep'docker-compose.yml'
docker-compose.yml
2.启动 EdgeX Foundry
使用以下命令部署 EdgeX:
1
2
3
4
5
6
7
$ cd edgex-compose/compose-builder
$ docker compose pull
$ docker compose up -d# 修改配置文件
替换IP地址 127.0.0.1 为 0.0.0.0
1
2
3
# docker compose pull# docker compose up -d
3.访问 UI
3.1. consul
1
2
# 访问地址
http://192.168.202.233:8500
3.2. EdgeX Console
1
2
# 访问地址
http://192.168.202.233:4000/
We use cookies to improve user experience. By continuing to browse this site, you agree the use of cookies, in accordance with our cookie policy.