-
Notifications
You must be signed in to change notification settings - Fork 5
/
bootstrap.sh
41 lines (29 loc) · 1023 Bytes
/
bootstrap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env bash
# Customization parameters.
RUBY_VERSION=2.4
RVM_PATH=/usr/local/rvm
GEMS=bundler
# Get information on the newest versions of Ubuntu packages
sudo apt-get update
# Install Ubuntu packages
sudo apt-get install -y git libcurl4-openssl-dev
# Install Ruby
if [ ! -e $RVM_PATH ]; then
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -sSL https://get.rvm.io | bash -s
fi
source $RVM_PATH/scripts/rvm
rvm use --install $RUBY_VERSION --default
# Install gems
gem install $GEMS
# Clean up
sudo apt-get autoremove -y
# Clone the 'devdocs' repo from GitHub in a shared directory
cd /vagrant/
git clone -c core.symlinks=true https://github.com/magento/devdocs.git
# Note: To avoid entering your user name and password every time you push, you can either use the SSH protocol
# Install gems and dependencies from Gemfile.
cd /vagrant/devdocs
bundle install
# Run Jekyll to generate the devdocs site on localhost:40000
# bin/jekyll serve --host=0.0.0.0