File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ build-docker-container:
55 docker build -f dockerfiles/Dockerfile.dev -t erlang-shell .
66
77start-docker-shell : build-docker-container
8- docker run -it -v $(shell pwd) :/code -v $(shell pwd) /data:/data --hostname erlang-red -p 9090:8080 -w /code --rm erlang-shell bash
8+ docker network create erlang-red-node-red-bridge || true
9+ docker run -it -v $(shell pwd) :/code -v $(shell pwd) /data:/data --hostname erlang-red -p 9090:8080 -p 1883:1883 --network erlang-red-node-red-bridge -w /code --rm erlang-shell bash
910
1011start-docker-shell-raspberry : build-docker-container
1112 docker run -it -v $(shell pwd) :/code -v $(shell pwd) /data:/data --device=/dev/i2c-1 --hostname erlang-red-raspberry --publish 9090:8080 -w /code --rm erlang-shell bash
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ RUN apt-get update && apt-get -y install \
2020 net-tools \
2121 i2c-tools
2222
23+ COPY ./priv/mosquitto.conf /etc/mosquitto/
24+
2325# create a user for docker image since erlexec complains too much
2426# but give the user super-powers - erlang and the power of root
2527RUN useradd -s /bin/bash -m -G users -G sudo erlang
Original file line number Diff line number Diff line change 1+ listener 1883 0.0.0.0
2+ allow_anonymous true
You can’t perform that action at this time.
0 commit comments