Merge branch 'docker-fixes' into 'master'

Docker fixes

See merge request framasoft/mobilizon!881
This commit is contained in:
Thomas Citharel 2021-03-30 13:08:22 +00:00
commit ea0bd3a8c6
3 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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"]

View File

@ -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"}]
]