Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions guides/deployment/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,10 @@ If you call `mix phx.gen.release --docker` you'll see a new file with these cont
# - https://hub.docker.com/r/hexpm/elixir/tags - for the build image
# - https://hub.docker.com/_/debian?tab=tags&page=1&name=bullseye-20230612-slim - for the release image
# - https://pkgs.org/ - resource for finding needed packages
# - Ex: hexpm/elixir:1.18.4-erlang-27.3.4.2-debian-bookworm-20250811-slim
#
# - Ex: hexpm/elixir:1.18.4-erlang-27.3.4.3-debian-trixie-20250908-slim
ARG ELIXIR_VERSION=1.18.4
ARG OTP_VERSION=27.3.4.2
ARG DEBIAN_VERSION=bookworm-20250811-slim
ARG OTP_VERSION=27.3.4.3
ARG DEBIAN_VERSION=trixie-20250908-slim

ARG BUILDER_IMAGE="hexpm/elixir:${ELIXIR_VERSION}-erlang-${OTP_VERSION}-debian-${DEBIAN_VERSION}"
ARG RUNNER_IMAGE="debian:${DEBIAN_VERSION}"
Expand Down Expand Up @@ -340,4 +339,4 @@ Add a file rel/remote.vm.args.eex with the following:
-start_epmd false -erl_epmd_port 6789 -dist_listen false
```

And now only port 6789 (in addition to the HTTP one) needs to be exposed internally between instances.
And now only port 6789 (in addition to the HTTP one) needs to be exposed internally between instances.
4 changes: 2 additions & 2 deletions lib/mix/tasks/phx.gen.release.ex
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ defmodule Mix.Tasks.Phx.Gen.Release do
|> map_size() > 0
end

@debian "bookworm"
@debian "trixie"
defp elixir_and_debian_vsn(elixir_vsn, otp_vsn) do
url =
"https://hub.docker.com/v2/namespaces/hexpm/repositories/elixir/tags?name=#{elixir_vsn}-erlang-#{otp_vsn}-debian-#{@debian}-"
Expand All @@ -260,7 +260,7 @@ defmodule Mix.Tasks.Phx.Gen.Release do
_ -> System.version()
end

otp_vsn = opts[:otp] || otp_vsn()
otp_vsn = opts[:otp] || otp_vsn()

vsns =
case elixir_and_debian_vsn(wanted_elixir_vsn, otp_vsn) do
Expand Down