Skip to content

Commit 52fb098

Browse files
committed
Update bootstrap
Update gpg command Remove symlinks option for git Add rake init
1 parent cfafa18 commit 52fb098

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

bootstrap.sh

100644100755
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#!/usr/bin/env bash
22

33
# Customization parameters.
4-
RUBY_VERSION=2.5
4+
RUBY_VERSION=2.6
55
RVM_PATH=/usr/local/rvm
66
GEMS=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
911
sudo apt-get update
@@ -13,12 +15,13 @@ sudo apt-get install -y git libcurl4-openssl-dev
1315

1416
# Install Ruby
1517
if [ ! -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
1820
fi
1921

2022
source $RVM_PATH/scripts/rvm
2123

24+
# Set up the default ruby version
2225
rvm 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
3134
cd /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.
3740
cd /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
3844
bundle 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

Comments
 (0)