mirror of
https://github.com/daniviga/bite.git
synced 2025-07-31 11:03:45 +02:00
Add testing suite (#18)
* Add some tests * Add an example of NTP with encryption * Enable TravisCI * Run sims via Docker * Improve simulators stage * Final fix for travis * Add README docs [skip ci]
This commit is contained in:
@@ -2,12 +2,11 @@ version: "3.7"
|
||||
|
||||
services:
|
||||
edge-host:
|
||||
<<: *service_default
|
||||
image: docker:dind
|
||||
privileged: true
|
||||
environment:
|
||||
DOCKER_TLS_CERTDIR:
|
||||
# networks:
|
||||
# - net
|
||||
networks:
|
||||
- net
|
||||
ports:
|
||||
- "127.0.0.1:22375:2375"
|
||||
|
@@ -1,8 +1,5 @@
|
||||
version: "3.7"
|
||||
|
||||
networks:
|
||||
localnet:
|
||||
|
||||
x-op-service-default: &service_default
|
||||
restart: always
|
||||
init: true
|
||||
@@ -15,12 +12,11 @@ services:
|
||||
context: ../simulator
|
||||
image: daniviga/bite-device-simulator
|
||||
environment:
|
||||
IOT_HTTP: "http://192.168.10.123:8000"
|
||||
# IOT_SERIAL: "abcd1234"
|
||||
IOT_HTTP: "http://ingress"
|
||||
# IOT_SERIAL: "http1234"
|
||||
# IOT_DELAY: 10
|
||||
IOT_DEBUG: 1
|
||||
networks:
|
||||
- localnet
|
||||
network_mode: "host"
|
||||
|
||||
device-mqtt:
|
||||
<<: *service_default
|
||||
@@ -28,11 +24,10 @@ services:
|
||||
context: ../simulator
|
||||
image: daniviga/bite-device-simulator
|
||||
environment:
|
||||
IOT_HTTP: "http://192.168.10.123:8000"
|
||||
IOT_MQTT: "192.168.10.123:1883"
|
||||
# IOT_SERIAL: "abcd1234"
|
||||
IOT_HTTP: "http://ingress"
|
||||
IOT_MQTT: "broker:1883"
|
||||
# IOT_SERIAL: "mqtt1234"
|
||||
# IOT_DELAY: 10
|
||||
IOT_DEBUG: 1
|
||||
command: ["/opt/bite/device_simulator.py", "-t", "mqtt"]
|
||||
networks:
|
||||
- localnet
|
||||
network_mode: "host"
|
||||
|
Reference in New Issue
Block a user