Skip to content

Instantly share code, notes, and snippets.

@MichaReiser
Created March 16, 2017 08:08
Show Gist options
  • Save MichaReiser/3874e278eb0d9d839ddc752df8a7662c to your computer and use it in GitHub Desktop.
Save MichaReiser/3874e278eb0d9d839ddc752df8a7662c to your computer and use it in GitHub Desktop.

Run Docker Image

docker run -it quay.io/travisci/travis-node-js /bin/bash

Remove dangling files

rm /etc/profile.d/rvm.sh

Install nano (optional)

apt-get update && apt-get install nano

Install latest rvm

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm reload
rvm install ruby 2.3.0
rvm use --default ruby 2.3.0
gem install bundler

Switch to travis user

su - travis

Clone Travis-build

git clone https://github.com/travis-ci/travis-build.git
cd travis-build 
gem install travis
travis 
ln -s `pwd` ~/.travis/travis-build
bundle install

Clone Project

mkdir ~/build && cd ~/builds
mkdir MichaReiser && cd MichaReiser
git clone https://github.com/MichaReiser/llvm-node.git && cd llvm-node
git checkout travis-build (optionally)

Compile and run

Notes

  • Caching seems not to be supported (so disable it)
@KarelWintersky
Copy link

root@299652e599e4:/# gem install bundler
ERROR:  Could not find a valid gem 'bundler' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=unknown state: tlsv1 alert protocol version (https://api.rubygems.org/specs.4.8.gz)

@tterb
Copy link

tterb commented Aug 10, 2018

@KarelWintersky I had been getting the same error with a variety of methods and was able to get passed it by updgrading the OpenSSL with the following commands:

sudo apt-get update 
sudo apt-get install --only-upgrade openssl 
sudo apt-get install --only-upgrade libssl-dev

Hope it helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment