I noticed that three files are being tailed after startup of the ejabberd server: /var/log/ejabberd/crash.log, /var/log/ejabberd/error.log, and /var/log/ejabberd/erlang.log. The tail command fails, however, because those files, including the path /var/log/ejabberd, do not exist.
Despite the files not existing under /var/log/ejabberd they do exist under /usr/local/var/log/ejabberd/, which was added during installation of ejabberd, so one of two changes should be made:
Change the LOG_DIR variable in the base_config.sh script to "/usr/local/var/log/ejabberd" instead of "/var/log/ejabberd".
Create the directory /var/log/ejabberd and the files crash.log, error.log, and erlang.log in this directory during image creation, i.e. add two steps in the dockerfile.
I have made both of the above mentioned changes, so you can choose either of them to merge to your master if you find them correct.
Alternatively you could add the --localstatedir flag to the ./configure step before compiling ejabberd. This is probably the solution I would prefer.
I noticed that three files are being tailed after startup of the ejabberd server: /var/log/ejabberd/crash.log, /var/log/ejabberd/error.log, and /var/log/ejabberd/erlang.log. The tail command fails, however, because those files, including the path /var/log/ejabberd, do not exist.
Despite the files not existing under /var/log/ejabberd they do exist under /usr/local/var/log/ejabberd/, which was added during installation of ejabberd, so one of two changes should be made:
Change the LOG_DIR variable in the base_config.sh script to "/usr/local/var/log/ejabberd" instead of "/var/log/ejabberd".
Create the directory /var/log/ejabberd and the files crash.log, error.log, and erlang.log in this directory during image creation, i.e. add two steps in the dockerfile.
I have made both of the above mentioned changes, so you can choose either of them to merge to your master if you find them correct.
Alternatively you could add the --localstatedir flag to the ./configure step before compiling ejabberd. This is probably the solution I would prefer.