Skip to content

Commit

Permalink
improve run script
Browse files Browse the repository at this point in the history
  • Loading branch information
philipptrenz authored and ReinvdZee committed Jul 16, 2024
1 parent fb6ad3e commit 62576bd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,4 @@ EXPOSE 9001
EXPOSE 1883
EXPOSE 3000
EXPOSE 8000
EXPOSE 502
17 changes: 15 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,19 @@ if test -n "$POSITIONAL"; then
exit 1
elif test -z "$SIMULATION"; then
if test "$KILL" = "true"; then kill_others; fi
docker run -it --rm -p $WSPORT:9001 -p $MQTTPORT:1883 -p $DBUSTCPPORT:3000 -p $APP_PORT:80 mqtt
cat << EndOfMessage
After running ./start_services.sh, the following comes available:
- Web interfaces
- Html5 app at http://localhost:${APP_PORT}
- DSE genset simulator at http://localhost:${DSE_SIMULATOR_WEBUI_PORT}
- Other services
- websocket at port ${WSPORT}
- mqtt at port ${MQTTPORT}
- dbus at port ${DBUSTCPPORT}
EndOfMessage
docker run -it --rm -p $WSPORT:9001 -p $MQTTPORT:1883 -p $DBUSTCPPORT:3000 -p $APP_PORT:80 -p $DSE_SIMULATOR_WEBUI_PORT:8000 mqtt
exit 0
else
if test -f simulations/$SIMULATION/setup; then
if test "$KILL" = "true"; then kill_others; fi
Expand All @@ -80,6 +92,7 @@ else
available
exit 1
fi
echo "Html5 app available at: localhost:${APP_PORT}, websocket port: ${WSPORT}, mqtt port: ${MQTTPORT}, dbus port: ${DBUSTCPPORT}"
fi

echo "Html5 app available at: localhost:${APP_PORT}, websocket port: ${WSPORT}, mqtt port: ${MQTTPORT}, dbus port: ${DBUSTCPPORT}"

0 comments on commit 62576bd

Please sign in to comment.