prasadtalasila/TransportScheduler

View on GitHub
script/vagrant

Summary

Maintainability
Test Coverage
#!/bin/bash
########################
# Purpose: To get up to speed in the vagrant box
# Author: Prasad Talasila
# Date: 10-April-2017
# Invocation: This script does not require any arguements. From the project top-level
#             directory, invoke as follows. ONLY INVOKE INSIDE VAGRANT ENVIRONMENT.
#             $bash script/vagrant
########################

if [ -f "$CONFIG_FILE" ];
then
  # shellcheck disable=SC1090
  . "$CONFIG_FILE"
fi
set -e      # bail out on failure

sudo apt-get update
sudo apt-get -y install git
# install erlang and OTP dependencies
sudo apt-get install -y automake autoconf libreadline-dev libncurses-dev libssl-dev libyaml-dev \
  libxslt-dev libffi-dev libtool unixodbc-dev make zip

# copy aliases for asdf, elixir and erlang
cd "$TS_HOME"
cat script/.bashrc >> "$HOME/.bashrc"