Thanks to this image, you can build ejabberd with dependencies provided in
Docker image, without the need to install build software
(despite Docker) directly on your own machine.
Thanks to this image, you can build ejabberd with dependencies provided in Docker image, without the need to install build software (despite Docker) directly on your own machine.
Please note that this image can likely be reused as is to build other Erlang or
Elixir software.
Please note that this image can likely be reused as is to build other Erlang or Elixir software.
## Building ejabberd from source
### Building ejabberd from source
You can build ejabberd from source with all dependencies, with the following
commands:
You can build ejabberd from source with all dependencies, with the following commands:
Building the image is not needed if you simply want to use it. You can simply use the one from [ejabberd Docker Hub](https://hub.docker.com/u/ejabberd/dashboard/).
```bash
docker build -t ejabberd/mix .
```
# Troubleshooting
## Troubleshooting
## Clock resync
### Clock resync
If you have warning about file timestamp being out of sync (Like 'Clock skew detected'),
you may want to force resync your clock before running the build. Docker on
MacOS does not force clock resync of Docker after the laptop went to sleep.
If you have warning about file timestamp being out of sync (Like 'Clock skew detected'), you may want to force resync your clock before running the build. Docker on MacOS does not force clock resync of Docker after the laptop went to sleep.
You can force clock resync as follow:
@ -58,8 +49,7 @@ You can force clock resync as follow:
docker run -it --rm --privileged --entrypoint="/sbin/hwclock" ejabberd/mix -s
```
You can check if the clock of your laptop is in sync with the one inside Docker
with the following command:
You can check if the clock of your laptop is in sync with the one inside Docker with the following command:
```bash
docker run --rm --entrypoint="/bin/sh" ejabberd/mix -c date -u && date -u