Last active
January 31, 2017 04:12
-
-
Save guycall/82ce8f19e43a3d9c4344f734b4013a95 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Purpose: a minimalistic provisioning of a fresh vagrant box | |
# Ubuntu 16.04 LTS (Xenial Xerus) rails development. | |
# Created: 2017-01-30 | |
# Updated: 2017-01-31 | |
# | |
# Uses shell as the provisioner. | |
# More details https://docs.vagrantup.com/v2/provisioning/shell.html | |
# Ensure OS is up to date | |
sudo apt-get update | |
sudo apt-get dist-upgrade | |
# Install Ubuntu's default version of Ruby (2.3) | |
sudo apt-get install -y ruby | |
sudo apt-get install -y ruby-dev | |
# Update RubyGems to latest version | |
sudo gem update --system | |
# Needed by gems that build native extensions | |
sudo apt-get install -y build-essential | |
# Needed to build sqlite3 gem | |
sudo apt-get install -y libsqlite3-dev | |
# Needed to build mysql gem | |
sudo apt-get install -y libmysqlclient-dev | |
# Install mysql client | |
sudo apt-get install -y mysql-client | |
# Some other development essentials | |
sudo apt-get install -y git | |
sudo gem install bundler | |
# Currently I manually install mysql server (v5.7.x) since it | |
# prompts for root password. There are ways to script a silent install | |
# sudo apt-get install mysql-server | |
echo 'Welcome! Install mysql-server, then go to your app folder and run: bundle install, rake db:create, etc.. ' | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2017 https://github.com/guycall | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in | |
# all copies or substantial portions of the Software. | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
# THE SOFTWARE. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment