Browse Source

Fix Docker support

- Add .dockerignore files
- Make default Node config force-overwrite its socket file
- puppet.sock -> rpc.sock
- Warn against starting bridge module before node module
master
Andrew Ferrazzutti 4 months ago
parent
commit
f47bcd3f0c
  1. 10
      .dockerignore
  2. 1
      SETUP.md
  3. 1
      node/.dockerignore
  4. 4
      node/example-config-docker.json

10
.dockerignore

@ -0,0 +1,10 @@
.editorconfig
logs
.venv
start
config.yaml
registration.yaml
*.db
*.pickle
node_modules
**/*.sock

1
SETUP.md

@ -93,6 +93,7 @@ These instructions describe how to run the bridge with Docker containers.
1. Generate the appservice registration by running the container again, and update your homeserver configuration to accept it
1. Run the bridge module with `docker run --restart unless-stopped -v $(pwd):/data:z matrix-appservice-kakaotalk`
* Additionally, you should either add the bridge to the same Docker network as your homeserver and database with `--network=<name>` (when they are running in Docker), or expose the correct port(s) with `-p <port>:<port>` or `--network=host` (when they are running outside Docker).
* If the Node module is configured to use a unix socket, make sure to start the bridge module's container _after_ the Node module's container. Otherwise, the bridge module may not be able to find the socket file.
## Upgrading
Simply `git pull` or `git rebase` the latest changes, rerun all `docker build` commands, then run new containers for the freshly-built images.

1
node/.dockerignore

@ -0,0 +1 @@
node_modules

4
node/example-config-docker.json

@ -1,7 +1,7 @@
{
"listen": {
"type": "unix",
"path": "/data/puppet.sock",
"force": false
"path": "/data/rpc.sock",
"force": true
}
}

Loading…
Cancel
Save