initial commit

This commit is contained in:
Florian Schwab 2018-09-28 01:14:07 +02:00
parent ec93dac026
commit 72832d0c1c
2 changed files with 30 additions and 0 deletions

11
Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM alpine:3.8
MAINTAINER Florian Schwab <me@ydkn.de>
# install avahi
RUN apk add --no-cache avahi avahi-tools
# disable d-bus
RUN sed -i 's/.*enable-dbus.*/enable-dbus=no/' /etc/avahi/avahi-daemon.conf
# set entrypoint
ENTRYPOINT ["avahi-daemon"]

19
README.md Normal file
View file

@ -0,0 +1,19 @@
# Docker image for Avahi
## Get configuration from image
```bash
docker create ydkn/avahi:latest
docker cp $(docker ps -ql):/etc/avahi .
docker rm $(docker ps -ql)
```
## Modify configuration
Edit `avahi-daemon.conf` to you needs.
Edit the services in the `services` directory to you needs.
# Start the container
```bash
docker run -d --restart always --net=host -v $(pwd)/avahi:/etc/avahi ydkn/avahi:latest
```