Skip to content

Instantly share code, notes, and snippets.

@eterps
Created Aug 27, 2018
Embed
What would you like to do?
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