Giter Club home page Giter Club logo

Comments (5)

drbrain avatar drbrain commented on August 28, 2024

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.

mschuchard avatar mschuchard commented on August 28, 2024

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.

drbrain avatar drbrain commented on August 28, 2024

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.

mschuchard avatar mschuchard commented on August 28, 2024

Sure, if the AppImage route does not work I will look at building rubyc with musl links.
Thanks.

from ruby-packer.

drbrain avatar drbrain commented on August 28, 2024

Great, thanks for the feedback, and let us know if we can improve the build instructions!

from ruby-packer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.