Sign inSign up

lapax/tiny-mosquitto

By lapax

Updated almost 11 years ago

a very minimal (buildroot based) runtime only docker encapsulation of the mosquitto mqtt broker available at http://mosquitto.org

Image
0

494

lapax/tiny-mosquitto repository overview

this file is available at

https://github.com/lexlapax/Dockerfiles/blob/master/tiny-mosquitto/README.md

currently uses http://mosquitto.org/files/source/mosquitto-1.2.3.tar.gz

this is built using buildroot http://buildroot.uclibc.org/ in order to make the image small.

the docker image was built with instructions from

http://blog.docker.io/2013/06/create-light-weight-docker-containers-buildroot/

the buildroot directory contains the .config file used for running the build.

mosquitto uses malloc_usable_size which is not available in uclibc

the config uses glibc instead because of that

the buildroot/package/mosquitto contains the two required files to include mosquitto into the buildroot build

short instructions

(the full instructions are in the buildimage.sh file)

download buildroot

git clone this repo

copy buildroot config and mosquitto build instructions from git clone to buildroot directory

build root image

touch up root image with docker support (/sbin/init and /etc/resolv.conf)

import image into docker (at this point the image can be tested)

create new image from Dockerfile

enjoy

the image built this way is tiny

$ docker images

REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE

lapax/mosquitto-lite latest 1a4fcff8c0d2 3 minutes ago 6.25.041 MB

Tag summary

Content type

Image

Digest

sha256:d5a7dbfc4

Size

2.6 MB

Last updated

almost 11 years ago

docker pull lapax/tiny-mosquitto