-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: switch to alpine linux #416
base: main
Are you sure you want to change the base?
Conversation
it can be build, but fails to start. docker run -it --rm -p 3000:3000 -e DEVELOP=1 -e SECRET_KEY_BASE=9dea7603c008dec285e4b231602a00b2 hdm-local rake aborted!
LoadError: cannot load such file -- sqlite3/sqlite3_native (LoadError)
/usr/local/bundle/gems/zeitwerk-2.6.17/lib/zeitwerk/kernel.rb:34:in `require'
/usr/local/bundle/gems/sqlite3-1.7.3-aarch64-linux/lib/sqlite3.rb:6:in `rescue in <top (required)>'
/usr/local/bundle/gems/sqlite3-1.7.3-aarch64-linux/lib/sqlite3.rb:2:in `<top (required)>'
<internal:/usr/local/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/usr/local/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
/usr/local/bundle/gems/zeitwerk-2.6.17/lib/zeitwerk/kernel.rb:34:in `require'
/hdm/config/application.rb:7:in `<top (required)>'
/hdm/Rakefile:14:in `require_relative'
/hdm/Rakefile:14:in `<top (required)>'
/usr/local/bundle/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
Caused by:
LoadError: Error relocating /usr/local/bundle/gems/sqlite3-1.7.3-aarch64-linux/lib/sqlite3/3.3/sqlite3_native.so: fcntl64: symbol not found - /usr/local/bundle/gems/sqlite3-1.7.3-aarch64-linux/lib/sqlite3/3.3/sqlite3_native.so (LoadError)
/usr/local/bundle/gems/zeitwerk-2.6.17/lib/zeitwerk/kernel.rb:34:in `require'
/usr/local/bundle/gems/sqlite3-1.7.3-aarch64-linux/lib/sqlite3.rb:4:in `<top (required)>'
<internal:/usr/local/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/usr/local/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
/usr/local/bundle/gems/zeitwerk-2.6.17/lib/zeitwerk/kernel.rb:34:in `require'
/hdm/config/application.rb:7:in `<top (required)>'
/hdm/Rakefile:14:in `require_relative'
/hdm/Rakefile:14:in `<top (required)>'
/usr/local/bundle/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
(See full trace by running task with --trace) |
oh nice.... i got it change the error to a segmentation fault XD
|
ahhh dang it :( |
Signed-off-by: Robert Waffen <[email protected]>
Signed-off-by: Robert Waffen <[email protected]>
Pre-built protobuf gems were causing segmentation faults on Alpine Linux. Building the gem directly on the Alpine system resolved the issue. Fixing it was adding this to the Gemfile:
|
@oneiros what do you think about the fix, setting the |
i think i will do a release before merging this, and then a new release after the merge with a major bump because we completely change the underlying structure of the container. |
No description provided.