mirror of
/repos/mqtt-broker-docker-image.git
synced 2025-12-30 08:01:36 +01:00
Basic mosquitto broker image
This commit is contained in:
commit
d5373d226d
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
FROM phusion/baseimage:0.9.13
|
||||||
|
|
||||||
|
MAINTAINER Vojta Orgoň
|
||||||
|
|
||||||
|
RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
|
||||||
|
|
||||||
|
RUN add-apt-repository ppa:mosquitto-dev/mosquitto-ppa -y
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install -y mosquitto python-mosquitto
|
||||||
|
|
||||||
|
ADD mosquitto-broker.sh /etc/service/mosquitto-broker/run
|
||||||
|
|
||||||
|
EXPOSE 1883
|
||||||
4
mosquitto-broker.sh
Executable file
4
mosquitto-broker.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo 'SERVICE: mosquitto broker'
|
||||||
|
exec mosquitto
|
||||||
Loading…
x
Reference in New Issue
Block a user