lightweight docker image of monkey server for raspberry pi
1.4K
This image is build form a staticaly compiled monkey server via dockerize. Thus reducing the size of the image to 3MB, including default website.
Many thanks to hypriots for its work and posts... it obviously inspired most of this work.
The sources of this image can be found on github: https://github.com/cblomart/rpi-monkey.git
Compose
Simply use "make"...But
To be able to compile haproxy staticaly a few dependencies must be met. So you can first:
make deps
An then you can build the image This will download monkey sources and compiles... If you run on a pi1 this might be the right time to go to the restaurant... The monkey binary will be installed in /usr/local/bin.
make
Test the image
make test
And push it to the docker hub
make push
The erase the sources and builds
make clean
Usage
docker run -d -p 80:80 cblomart/rpi-monkey
Customizing Haproxy
docker run -d -p 80:80 -v :/etc/monkey -v :/var/www cblomart/rpi-monkey
where:
is an absolute path of a directory containing the monkey config folder.
is an absolute path of a directory containing the web site.
docker pull cblomart/rpi-monkey:latest