GithubHelp home page GithubHelp logo

Comments (11)

voitylov avatar voitylov commented on June 12, 2024 1

We fixed this in the forthcoming release due together with April CPU. Meanwhile, please try this workaround:

apk add libstdc++

from liberica.

voitylov avatar voitylov commented on June 12, 2024 1

thank you Nicolas! The instructions are updated to reflect the required packages for various language plugins: https://bell-sw.com/pages/liberica_install_guide-native-image-kit-21.1.0/

from liberica.

nfrankel avatar nfrankel commented on June 12, 2024

Thanks for the quick feedback

from liberica.

voitylov avatar voitylov commented on June 12, 2024

Note that on Alpine libstdc++ is not installed by default. To build a mostly static image and avoid this (and other) dependencies in the generated native images a user can provide -H:+StaticExecutableWithDynamicLibC during build time.

from liberica.

nfrankel avatar nfrankel commented on June 12, 2024

You might have closed the bug a bit fast.

You also need to install bash since the Ruby post_install_hook.sh requires bash.

Running it causes another issue related to missing development tools. The current documentation doesn't mention anything of the sort.

from liberica.

voitylov avatar voitylov commented on June 12, 2024

I guess that should complain about openssl. We definitely need a doc revamp in the area of dependencies on Alpine Linux for the various components installed through tar.gz and gu mechanism. Despite the fact we are working on packaging things into apk, there always is going to be a fraction of users who prefer tar.gz. Let's assume this issue is about that.

from liberica.

nfrankel avatar nfrankel commented on June 12, 2024

I'm trying to make things work right now. When they have, I'll publish the Dockerfile and will let you know about it.

from liberica.

nfrankel avatar nfrankel commented on June 12, 2024

Here it is:

FROM alpine:3

ENV GRAAL_VERSION=21.0.0.2
ENV SUFFIX=linux-x64-musl
ENV GRAAL_FOLDER=bellsoft-liberica-vm-openjdk11-${GRAAL_VERSION}
ENV GRAAL_ARCHIVE=${GRAAL_FOLDER}-${SUFFIX}
ENV TRUFFLERUBY_RECOMPILE_OPENSSL=false
ENV NIK_FOLDER=/opt/nik
ENV PATH=$PATH:${NIK_FOLDER}/languages/ruby/bin

RUN wget https://download.bell-sw.com/vm/${GRAAL_VERSION}/${GRAAL_ARCHIVE}.tar.gz \
 && tar -C / -xzf ${GRAAL_ARCHIVE}.tar.gz \
 && rm ${GRAAL_ARCHIVE}.tar.gz \
 && apk add libstdc++ bash --no-cache \
 && mv ${GRAAL_FOLDER} ${NIK_FOLDER} \
 && export PATH=$PATH:${NIK_FOLDER}/bin \
 && gu install ruby \
 && ${NIK_FOLDER}/languages/ruby/lib/truffle/post_install_hook.sh
  1. The resulting image is 1.26GB
  2. I skip the recompilation of Open SSL

from liberica.

nfrankel avatar nfrankel commented on June 12, 2024

Thanks, I'll retry with these instructions and let you know.

from liberica.

nfrankel avatar nfrankel commented on June 12, 2024

It works! I don't know your workflow, do you want me to close the issue or do you want to do it?

from liberica.

voitylov avatar voitylov commented on June 12, 2024

thanks Nikolas, please let us know if you bump into something else :)

from liberica.

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.