Skip to content

Commit

Permalink
Improve error handling on speedtest
Browse files Browse the repository at this point in the history
  • Loading branch information
stonegray committed Oct 14, 2023
1 parent 02d1f88 commit e76eed5
Show file tree
Hide file tree
Showing 9 changed files with 107 additions and 391 deletions.
5 changes: 4 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
node_modules
npm-debug.log
npm-debug.log
test/*
test

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
.DS_Store
test/data
test/log
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ COPY . .

RUN npm ci --only=production

CMD [ "node", "src/speedtest.mjs" ]
CMD [ "node", "src/speedtest.mjs" ]
16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
services:
speedtest:
build:
dockerfile: Dockerfile
container_name: speedtest232i
environment:
- MQTT_HOST=mqtt://mosquitto
restart: unless-stopped
mosquitto:
image: eclipse-mosquitto
container_name: mosquitto
volumes:
- ./test/:/mosquitto/config/
ports:
- 1883:1883
- 9001:9001
Loading

0 comments on commit e76eed5

Please sign in to comment.