Working on docker

This commit is contained in:
2022-04-17 18:58:58 -04:00
parent e858a217fe
commit 41dab0cd30
15 changed files with 792 additions and 20 deletions

View File

@@ -1,25 +1,28 @@
# run this with docker-compose -f docker/docker-compose.yml run test
version: "3.3"
version: "3"
services:
test:
image: swift:5.3
working_dir: /dewPoint-controller
#image: swift:latest
build:
context: ./
platform: linux/amd64
working_dir: /app
volumes:
- .:/dewPoint-controller
- .:/app
depends_on:
- mosquitto
environment:
- MOSQUITTO_SERVER=mosquitto
command: /bin/bash -xcl "swift test --enable-test-discovery --sanitize=thread"
command: "swift package clean && swift test"
mosquitto:
image: eclipse-mosquitto
volumes:
- ./mosquitto/config:/mosquitto/config
- ./mosquitto/certs:/mosquitto/certs
ports:
- "1883:1883"
- "8883:8883"
- "8080:8080"
- "8081:8081"
#ports:
#- "1883:1883"
#- "8883:8883"
#- "8080:8080"
#- "8081:8081"