Open gellfuen opened 1 week ago
You shouldn't mount the app folder, remove the volumes definition and it should start fine
Il Dom 20 Ott 2024, 14:18 gellfuen @.***> ha scritto:
Hello! I've already done a few things with Docker and Docker-compose files and can use them. However, I don't understand how the gateway is supposed to work with your docker-compose file, or I haven't found the corresponding instructions!
My docker-compose file:
services: saic-mqtt-gateway: image: ‘saicismartapi/saic-python-mqtt-gateway:latest’ container_name: ‘saic-mqtt-gateway’ environment:
- MQTT_URI=tcp://192.168.1.2:1883
- MQTT_USER=username
- MQTT_PASSWORD=password
- @.***
- SAIC_PASSWORD=saicpassword
- LOG_LEVEL=DEBUG
- MQTT_LOG_LEVEL=DEBUG volumes:
- ./app:/usr/src/app
Docker can create the conatiner, but terminates it immediately with the error: saic-mqtt-gateway | python: can't open file ‘/usr/src/app/./mqtt_gateway.py’: [Errno 2] No such file or directory
THX for help! regards
— Reply to this email directly, view it on GitHub https://github.com/SAIC-iSmart-API/saic-python-mqtt-gateway/issues/270, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIT3RRN5D57HBZ5AXX65D3Z4ONR7AVCNFSM6AAAAABQIOZH5CVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYYDANBQG43TKMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Hello Giovanni,
I removed the volumes definition and it works now. THX regards
Am So., 20. Okt. 2024 um 16:54 Uhr schrieb Giovanni Condello < @.***>:
You shouldn't mount the app folder, remove the volumes definition and it should start fine
Il Dom 20 Ott 2024, 14:18 gellfuen @.***> ha scritto:
Hello! I've already done a few things with Docker and Docker-compose files and can use them. However, I don't understand how the gateway is supposed to work with your docker-compose file, or I haven't found the corresponding instructions!
My docker-compose file:
services: saic-mqtt-gateway: image: ‘saicismartapi/saic-python-mqtt-gateway:latest’ container_name: ‘saic-mqtt-gateway’ environment:
- MQTT_URI=tcp://192.168.1.2:1883
- MQTT_USER=username
- MQTT_PASSWORD=password
- @.***
- SAIC_PASSWORD=saicpassword
- LOG_LEVEL=DEBUG
- MQTT_LOG_LEVEL=DEBUG volumes:
- ./app:/usr/src/app
Docker can create the conatiner, but terminates it immediately with the error: saic-mqtt-gateway | python: can't open file ‘/usr/src/app/./mqtt_gateway.py’: [Errno 2] No such file or directory
THX for help! regards
— Reply to this email directly, view it on GitHub https://github.com/SAIC-iSmart-API/saic-python-mqtt-gateway/issues/270,
or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAIT3RRN5D57HBZ5AXX65D3Z4ONR7AVCNFSM6AAAAABQIOZH5CVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYYDANBQG43TKMA>
. You are receiving this because you are subscribed to this thread.Message ID: @.***>
— Reply to this email directly, view it on GitHub https://github.com/SAIC-iSmart-API/saic-python-mqtt-gateway/issues/270#issuecomment-2425027969, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJXS7BVUK2AZTPR2R4OFVZTZ4O7ZZAVCNFSM6AAAAABQIOZH5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRVGAZDOOJWHE . You are receiving this because you authored the thread.Message ID: @.*** com>
Hello! I've already done a few things with Docker and Docker-compose files and can use them. However, I don't understand how the gateway is supposed to work with your docker-compose file, or I haven't found the corresponding instructions!
My docker-compose file:
services: saic-mqtt-gateway: image: ‘saicismartapi/saic-python-mqtt-gateway:latest’ container_name: ‘saic-mqtt-gateway’ environment:
Docker can create the conatiner, but terminates it immediately with the error: saic-mqtt-gateway | python: can't open file ‘/usr/src/app/./mqtt_gateway.py’: [Errno 2] No such file or directory
THX for help! regards