From 2869255c0bd358ac35580473e191a93751208df8 Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 21 Jul 2021 21:21:09 +0200 Subject: [PATCH] Copy back config.exs, as ejabberd 21.07 uses runtime.exs --- ecs/Dockerfile | 1 + ecs/config.exs | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 ecs/config.exs diff --git a/ecs/Dockerfile b/ecs/Dockerfile index 25c612c..3443d52 100644 --- a/ecs/Dockerfile +++ b/ecs/Dockerfile @@ -10,6 +10,7 @@ RUN git clone https://github.com/processone/ejabberd.git WORKDIR /ejabberd COPY vars.config . RUN echo '{vsn, "'${VERSION}'.0"}.' >>vars.config +COPY config.exs config/ COPY rel/*exs rel/ RUN git checkout ${VERSION/latest/HEAD} \ && mix deps.get \ diff --git a/ecs/config.exs b/ecs/config.exs new file mode 100644 index 0000000..ef479a4 --- /dev/null +++ b/ecs/config.exs @@ -0,0 +1,10 @@ +use Mix.Config + +# This is standard path in the context of ejabberd release +config :ejabberd, + file: "config/ejabberd.yml", + log_path: 'log/ejabberd.log' + +# Customize Mnesia directory: +config :mnesia, + dir: 'database/'