Coder Social home page Coder Social logo

sandmule / docker-ruby-alpine-libv8 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joenyland/docker-ruby-alpine-libv8

0.0 1.0 0.0 6 KB

Alpine Linux based Ruby Docker image with libv8 gem

Home Page: https://hub.docker.com/r/joenyland/ruby-alpine-libv8/

Dockerfile 100.00%

docker-ruby-alpine-libv8's Introduction

docker-ruby-alpine-libv8 Docker Build Status

This image is based on the official Ruby image for Alpine Linux. It contains the libv8 gem installed with a V8 engine that's built against the musl C library that Alpine Linux uses.

One can, of course, just install NodeJS in Alpine Linux and ExecJS will just use that. If you'd prefer not to use NodeJS, then you can use this image to base your app on.

Example

Here's what happens with the normal Alpine based Ruby image:

docker run -it --rm ruby:alpine sh
apk add build-base
gem install therubyracer
irb(main):001:0> require 'v8'
LoadError: Error relocating /usr/local/bundle/gems/therubyracer-0.12.3/lib/v8/init.so: __vfprintf_chk: symbol not found - /usr/local/bundle/gems/therubyracer-0.12.3/lib/v8/init.so

And here's it working with this image:

docker run -it --rm joenyland/ruby-alpine-libv8
apk add build-base
gem install therubyracer
irb(main):001:0> require 'v8'
=> true
irb(main):002:0> V8::Context.new.eval 5 * 9
=> 45

Contributing

  • Any issues, please file a new issue here.
  • Happy to accept pull requests: please raise one here.

docker-ruby-alpine-libv8's People

Contributors

joenyland avatar

Watchers

James Cloos avatar

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.