Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

Commit

Permalink
Scripts update.
Browse files Browse the repository at this point in the history
  • Loading branch information
vgorloff committed Dec 12, 2018
1 parent 1dc3875 commit 41e545e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 20 deletions.
22 changes: 3 additions & 19 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,34 +225,18 @@ D. Getting Sources
E. Installing dependencies on Box
---------------------------------------
1. Install development packages.
1. Install development packages and Verify Ruby and Rake version.
```bash
host$ vagrant ssh
box$ sudo apt-get update
box$ sudo apt-get install cmake ninja-build clang python uuid-dev libicu-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev pkg-config libblocksruntime-dev libcurl4-openssl-dev systemtap-sdt-dev tzdata rsync libz3-dev
```
2. Install Ruby and Rake.
**Note**: `rake` is kind of `make` for Ruby.
```bash
box$ sudo apt-get install ruby
```
3. Verify Ruby and Rake
```bash
box$ ruby --version
box$ rake --version
box$ bash /vagrant/Scripts/Shell/bootstrap.sh
```
4. (Optionall) Take snapshot.
```bash
host$ vagrant snapshot save "02. After installing dependencies."
host$ vagrant snapshot save "Initial Setup"
```
II. Usage
Expand Down
23 changes: 23 additions & 0 deletions Scripts/Shell/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
SA_CMD="sudo apt-get update"
echo "Executing command: \"$SA_CMD\""
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
$SA_CMD

# Swift dependencies
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
SA_CMD="sudo apt-get install ruby cmake ninja-build clang python uuid-dev libicu-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev pkg-config libblocksruntime-dev libcurl4-openssl-dev systemtap-sdt-dev tzdata rsync libz3-dev"
echo "Executing command: \"$SA_CMD\""
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
$SA_CMD

# Verify ruby
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "Verifying Ruby and Rake version"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
ruby --version
rake --version
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "Done!"
File renamed without changes.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.provision :shell, inline: "echo 'source /vagrant/Scripts/bootstrap.sh' > /etc/profile.d/sa-environment.sh", :run => 'always'
config.vm.provision :shell, inline: "echo 'source /vagrant/Scripts/Shell/environment.sh' > /etc/profile.d/sa-environment.sh", :run => 'always'

config.vm.provider "virtualbox" do |vb|
vb.memory = "5120" # Setting value less that `5120` can cause linker to fail.
Expand Down

0 comments on commit 41e545e

Please sign in to comment.