11#! /usr/bin/env bash
22
33#  Customization parameters.
4- RUBY_VERSION=2.5 
4+ RUBY_VERSION=2.6 
55RVM_PATH=/usr/local/rvm
66GEMS=bundler
7+ #  Replace 'none' with your token here if you have reading access to private magento repositories
8+ TOKEN=none
79
810#  Get information on the newest versions of Ubuntu packages
911sudo apt-get update
@@ -13,12 +15,13 @@ sudo apt-get install -y git libcurl4-openssl-dev
1315
1416#  Install Ruby
1517if  [ !  -e  $RVM_PATH  ];  then 
16- 	gpg --keyserver hkp://keys.gnupg .net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
18+ 	gpg --keyserver hkp://pool.sks-keyservers .net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB 
1719	curl -sSL https://get.rvm.io |  bash -s
1820fi 
1921
2022source  $RVM_PATH /scripts/rvm
2123
24+ #  Set up the default ruby version
2225rvm use --install $RUBY_VERSION  --default
2326
2427#  Install gems
@@ -29,13 +32,18 @@ sudo apt-get autoremove -y
2932
3033#  Clone the 'devdocs' repo from GitHub in a shared directory
3134cd  /vagrant/
32- git clone -c core.symlinks=true  https://github.com/magento/devdocs.git
35+ git clone https://github.com/magento/devdocs.git
3336
3437#  Note: To avoid entering your user name and password every time you push, you can either use the SSH protocol
3538
3639#  Install gems and dependencies from Gemfile.
3740cd  /vagrant/devdocs
41+ #  Use system libraries to build the nokogiri extensions to decrease the gem installation time
42+ bundle config build.nokogiri --use-system-libraries
43+ #  Install gems from Gemfile
3844bundle install
45+ #  Provide the 'token' shell variable to enable cloning by https 
46+ token=$TOKEN  rake init
3947
4048#  Run Jekyll to generate the devdocs site on localhost:40000
4149#     bin/jekyll serve --host=0.0.0.0
0 commit comments