Skip to content

Instantly share code, notes, and snippets.

@eterps
Created August 27, 2018 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eterps/59a40746ad09263427274cefaa1409e0 to your computer and use it in GitHub Desktop.
Save eterps/59a40746ad09263427274cefaa1409e0 to your computer and use it in GitHub Desktop.
ruby-llvm on recent ubuntu with recent llvm version
FROM ubuntu:18.04
RUN apt-get update && apt-get install -y build-essential git ruby-dev llvm-5.0-dev
RUN gem install bundler rake
RUN /bin/echo -e "source 'https://rubygems.org'\ngem 'ruby-llvm', git: 'https://github.com/ruby-llvm/ruby-llvm', ref: '889e97d'" >Gemfile
RUN bundle install
CMD bundle exec ruby /var/lib/gems/*/bundler/gems/ruby-llvm*/samples/hello.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment