Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update runtime #45

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Update runtime #45

wants to merge 1 commit into from

Conversation

ruslandoga
Copy link

@ruslandoga ruslandoga commented Oct 21, 2024

This PR updates Erlang/Elixir/Alpine versions to the current latest.

Context: #44 (comment)

UPDATE: the container fails to start right now with

ERROR! Cannot configure :kernel because :reboot_system_after_config has been set to false and :kernel has already been loaded, meaning any further configuration won't have an effect.

The configuration for :kernel before config providers was:

nil

The configuration for :kernel after config providers was:

[inet_dist_listen_min: 30000, inet_dist_listen_max: 30000]

Runtime terminating during boot ({<<"aborting boot">>,[{'Elixir.Config.Provider',boot,2,[]}]})

Crash dump is being written to: erl_crash.dump...done

(I had to switch from config/releases.exs to config/runtime.exs to get this error message, with the former it was just erl_crash.dump)

I'll make the following changes before marking the PR ready for review:

  • switch to runtime.exs
  • use vm.args.eex for :kernel configuration or set reboot_system_after_config to true

@ruslandoga ruslandoga mentioned this pull request Oct 21, 2024
7 tasks
@@ -30,7 +30,7 @@ COPY rel rel
RUN mix release

# prepare release image
FROM alpine:3.17.3 AS app
FROM alpine:3.20.3 AS app
RUN apk add --no-cache --update bash openssl libstdc++
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also install ca-certificates (for the new public_key.cacerts_get) and ncurses (I never learned why it is needed in Erlang, but I think my apps fail to start when it's missing)?

@ruslandoga ruslandoga marked this pull request as draft October 21, 2024 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant