Comments (5)
I've seen this same issue building go binaries on the ubuntu:16.04
image and trying to run them on the alpine:latest
image.
Some googling suggests installing libc6-compat
may allow you to run rubyc
?
from ruby-packer.
Looked into those glibc dynamic linking workarounds and they do not seem to be working in this situation.
Should I be looking into other software for lightweight Ruby software packaging and containerization, or is there interest in first party support for this?
I know Hashi just released a Vagrant version packaged with AppImage so that route may work.
from ruby-packer.
I don't know what is different about the alpine linux environment and unfortunately I don't have the time to figure out how to get the packaged rubyc to work in it.
You can define a Dockerfile that builds rubyc under alpine, then uses that rubyc to package your application, then copies the packaged application to a standalone image. I have added some instructions for building rubyc yourself to the README that may get you started.
Since you need the same toolchain for building your own rubyc and for packaging your application with rubyc the main downside is the extra time spent building rubyc. Of course, you can store your alpine-compatible rubyc to save time.
from ruby-packer.
Sure, if the AppImage route does not work I will look at building rubyc with musl links.
Thanks.
from ruby-packer.
Great, thanks for the feedback, and let us know if we can improve the build instructions!
from ruby-packer.
Related Issues (20)
- Pack more files HOT 2
- Can not build with Ruby 3.0.0 HOT 1
- Implicit declaration in C99 error when packing a rails project using Ruby 2.4.10 HOT 3
- Error loading nokogiri when starting compiled binary HOT 14
- The build is broken, due to Rubocop error
- rubyc not starting anymore since enclose.io is down
- Dir.glob returns inconsistent results inside memfs
- Reading from memfs file is not thread safe
- `require` is 10 times slower in packed ruby
- Is it possible to compile for Linux but on a Mac?
- Fails to build with both Stable and Pre-release HOT 1
- [Documentation] Differences to ocra?
- how to install another gems in linux system HOT 1
- TestFailed! nmake /f win32\Makefile.msc Failed running HOT 1
- Error building executable gem: error compiling squash.c
- Provide a GitHub action to setup and run rubyc
- Manual pages not compiled HOT 1
- ruby-packer sets BUNDLE_GEMFILE inside the running script
- Build error HOT 1
- ** Ruby-packer replacement, maintained **
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-packer.