Skip to content

Instantly share code, notes, and snippets.

@eterps
Created August 27, 2018 08:53
Show Gist options
  • Select an option

  • Save eterps/f67e2da88565270db6f8745c26043b29 to your computer and use it in GitHub Desktop.

Select an option

Save eterps/f67e2da88565270db6f8745c26043b29 to your computer and use it in GitHub Desktop.
ruby-llvm on ubuntu 16.04 with recent llvm version 3.5
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y build-essential ruby-dev llvm-3.5 wget
RUN gem install bundler rake
RUN /bin/echo -e "source 'https://rubygems.org'\ngem 'ruby-llvm'" >Gemfile
RUN bundle install
RUN wget -nv https://raw.githubusercontent.com/ruby-llvm/ruby-llvm/master/samples/hello.rb
CMD bundle exec ruby hello.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment