With the help of @davehun and @spikeheap from @northwalestech I have been working on an Emoncms Docker setup. Using Docker it’s possible to fire up Emoncms on a bare system (assuming Docker is installed) in a couple of minutes with all the LAMP config faff taken care of. This is great for development since you can play about with Emoncms running in a Docker container without fear of messing up your main Emoncms install.
In the future, Docker can even be used as a deployment tool for Emoncms. In theory, it should be possible to deploy the Docker container on any server within minutes
$ docker pull openenergymonitor/emoncms $ git clone https://github.com/emoncms/emoncms-docker $ cd emoncms-docker $ docker-compose up
That’s it! Emoncms should now be runnning, browse to http://localhost:8080
The Docker files and build instructions are in the emoncms-docker repo:
Please give it a try and let me know how you get on.
The next step will be to push an Emoncms Docker container to docker-hub to allow anyone interested in Emoncms to pull down the container and be up and running with Emoncms almost immediately.
- Allow docker container to startup with a large amount of test data & demo dashboards etc.
- Create ability to simulate a large number of inputs
- Simulate emoncms.org multi-server
- Add MQTT
- Backup module
- Add Redis
- Investigate running Docker on RaspberryPi