commit d5373d226d0f92f73063b122fc4674028298ffdd Author: Vojtěch Orgoň Date: Thu Oct 2 09:22:35 2014 +0200 Basic mosquitto broker image diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e6fb026 --- /dev/null +++ b/Dockerfile @@ -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 diff --git a/mosquitto-broker.sh b/mosquitto-broker.sh new file mode 100755 index 0000000..ba463b5 --- /dev/null +++ b/mosquitto-broker.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +echo 'SERVICE: mosquitto broker' +exec mosquitto