mirror of
https://github.com/owntracks/docker-recorder.git
synced 2026-02-13 20:49:51 +00:00
New Dockerfile for Recorder
The problem with the current solution is that it provide a monolytic multiprogramm docker container. However the idiom of docker is to have one service per docker container. If multiple services are needed multiple docker container should be used. Docker-compose makes this easily possible. Another isse is that the container automatically creates certificates and sets up encryption using a script. Also this violates docker idioms, because certificate handling can be done using specific containers like letsencrypt. It further makes it hard to include this image into an existing and possible complex infastructure. A further goal of mine would be to generate a Hassio addon for the homeassistant project from this. The current dockerfile makes this kind of hard. What I did: - Slimmed down the container to about 10MB by using alpine as a base - Added a `docker-compose.yml` file that shows how to build and run the container - Added a `docker-compose-mqtt.yml` file to show how a mqtt broker can be added. This shows how a plug and play solution using docker could look like. - Changed the docker image label to owntracks/recorder - Added documentation on how to use and configure the image - Simple travis file for possible automatic building in the near future - Removed automatic certificate handling Instead provide `config` volume to allow configuration. - Removed arm32v7 build should be readded later but I dont have a setup for testing right now What might be added at some point: - Example with nginx reverse proxy - Example with letsencrypt certificate This could also be an example for a complete plug and play solution. Proxy, SSl, MQTT and Recorder. - Default resolv.conf file with all default options and documentation - Upload to docker hub - Change name to owntracks/recorder - Some more examples for eclipse mosquitto
This commit is contained in:
12
.travis.yml
Normal file
12
.travis.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
services:
|
||||
- docker
|
||||
|
||||
|
||||
script:
|
||||
- docker-compose build
|
||||
- docker-compose up -d
|
||||
- docker-compose down
|
||||
|
||||
- docker-compose -f docker-compose-mqtt.yml up -d
|
||||
- docker-compose -f docker-compose-mqtt.yml down
|
||||
Reference in New Issue
Block a user