https://github.com/hasufell/docker-gentoo-jabberd2
Gentoo jabberd2 docker
https://github.com/hasufell/docker-gentoo-jabberd2
Last synced: about 2 months ago
JSON representation
Gentoo jabberd2 docker
- Host: GitHub
- URL: https://github.com/hasufell/docker-gentoo-jabberd2
- Owner: hasufell
- Created: 2015-10-16T18:30:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-03T20:24:46.000Z (about 9 years ago)
- Last Synced: 2025-01-28T18:46:01.811Z (4 months ago)
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Installation
```sh
docker build -t hasufell/gentoo-jabberd2 .
```Also get the mysql image:
```sh
docker pull hasufell/gentoo-mysql
```## Configuration
Configuration should be mounted in from the host or a data volume container
at `/etc/jabber/`.## Running
### Database
Start the mysql container:
```sh
docker run -ti -d \
--name=jabberd2-mysql \
-v /srv/mysql-jabberd2:/var/lib/mysql \
-p 3309 \
-e MYSQL_PORT=3309 \
-e MYSQL_PASS= \
hasufell/gentoo-mysql
```Copy the mysqldump or raw db scheme
(`/usr/share/doc/jabberd2-*/tools/db-setup.mysql`) to e.g
`/srv/mysql-jabberd2/`, then inject the dump/scheme:```sh
docker exec -ti \
jabberd2-mysql \
/bin/bash -c "mysqladmin -u root create jabberd2 && mysql -u root jabberd2 < /var/lib/mysql/ && echo \"GRANT select,insert,delete,update ON jabberd2.* to 'jabberd2'@'%' IDENTIFIED by '';\" | mysql -u root"
```### Jabberd2
A full command could look like this:
```sh
docker run -ti -d \
--name=jabberd2 \
--link jabberd2-mysql:jabberd2-mysql \
-v :/etc/jabber \
-p 5222:5222 \
-p 5223:5223 \
-p 5269:5269 \
hasufell/gentoo-jabberd2
```