Add a simple dockerfile

Tested well enough on Windows, but minimal confidence in it continuing to work. 

Fixes https://github.com/matrix-org/pantalaimon/issues/13

The patch mentioned in the issue doesn't seem to be needed anymore.
This commit is contained in:
Travis Ralston 2019-10-01 19:27:48 -06:00
parent 8021c49d34
commit 176735eeb8
2 changed files with 42 additions and 0 deletions

View file

@ -67,6 +67,30 @@ cd notification-daemon-mac-py
./notify.py
```
### Docker
An experimental Docker image can be built for Pantalaimon, primarily for use in bots.
```bash
docker build -t pantalaimon .
# Create a pantalaimon.conf before running. The directory mentioned in the
# volume below is for where Pantalaimon should dump some data.
docker run -it --rm -v /path/to/pantalaimon/dir:/data -p 8008:8008 pantalaimon
```
An example `pantalaimon.conf` for Docker is:
```conf
[Default]
LogLevel = Debug
SSL = True
[local-matrix]
Homeserver = https://matrix.org
ListenAddress = 0.0.0.0
ListenPort = 8008
SSL = False
```
### Experimental E2E search support.
Pantalaimon can handle the search endpoint of a Matrix server as well, providing