From 11a06664bdcf87635616b45b670d3fe558f1ad29 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 30 Mar 2021 13:53:47 +0200 Subject: [PATCH 1/3] Fix Docker listen IP setting Signed-off-by: Thomas Citharel --- config/docker.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/docker.exs b/config/docker.exs index e84a32995..50252737a 100644 --- a/config/docker.exs +++ b/config/docker.exs @@ -5,7 +5,7 @@ import Config listen_ip = System.get_env("MOBILIZON_INSTANCE_LISTEN_IP", "::") listen_ip = - case :inet.parse_address(listen_ip) do + case listen_ip |> to_charlist() |> :inet.parse_address() do {:ok, listen_ip} -> listen_ip _ -> raise "MOBILIZON_INSTANCE_LISTEN_IP does not match the expected IP format." end From 730e2748d59297d9c05e9bd610c2c179c7ba601c Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 30 Mar 2021 14:36:29 +0200 Subject: [PATCH 2/3] Fix Docker releases not starting anymore Signed-off-by: Thomas Citharel --- docker/production/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/production/Dockerfile b/docker/production/Dockerfile index cec3e6f74..e047a4a3e 100644 --- a/docker/production/Dockerfile +++ b/docker/production/Dockerfile @@ -56,7 +56,7 @@ EXPOSE 4000 ENV MOBILIZON_DOCKER=true COPY --from=builder --chown=nobody:nobody _build/prod/rel/mobilizon ./ -RUN mv /releases/${MOBILIZON_VERSION}/runtime.exs /etc/mobilizon/config.exs +RUN cp /releases/${MOBILIZON_VERSION}/runtime.exs /etc/mobilizon/config.exs COPY docker/production/docker-entrypoint.sh ./ ENTRYPOINT ["./docker-entrypoint.sh"] From ef4a1d0b7617bc334c65bb44df87222b85c947c7 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 30 Mar 2021 14:36:41 +0200 Subject: [PATCH 3/3] Only add unix executables in releases Signed-off-by: Thomas Citharel --- mix.exs | 1 + 1 file changed, 1 insertion(+) diff --git a/mix.exs b/mix.exs index 1792e7f98..0a4cf4c3f 100644 --- a/mix.exs +++ b/mix.exs @@ -31,6 +31,7 @@ defmodule Mobilizon.Mixfile do docs: docs(), releases: [ mobilizon: [ + include_executables_for: [:unix], applications: [eldap: :transient], config_providers: [{Mobilizon.ConfigProvider, "/etc/mobilizon/config.exs"}] ]