mirror of
https://github.com/jcwimer/railsVagrant
synced 2026-03-24 18:44:42 +00:00
Added nvm install and php 7.1
This commit is contained in:
3
Vagrantfile
vendored
3
Vagrantfile
vendored
@@ -5,10 +5,11 @@ Vagrant.configure("2") do |config|
|
||||
config.vm.provision :shell, path: "setup/build.sh"
|
||||
config.vm.provision :shell, path: "setup/rvm-install.sh", args: "stable", privileged: false
|
||||
config.vm.provision :shell, path: "setup/ruby-install.sh", args: "2.3.0 rails", privileged: false
|
||||
config.vm.provision :shell, path: "setup/nvm-install.sh", privileged: false
|
||||
config.vm.provision :shell, path: "setup/other-user-setup.sh", privileged: false
|
||||
config.vm.provider "virtualbox" do |v|
|
||||
v.memory = 2048
|
||||
v.cpus = 2
|
||||
v.name = "railsdev"
|
||||
v.name = "developer"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
apt-get update
|
||||
apt-get install nodejs nodejs-legacy npm curl git -y
|
||||
apt-get install software-properties-common python-software-properties curl git -y
|
||||
add-apt-repository ppa:ondrej/php -y
|
||||
apt-get update
|
||||
apt-get install php7.1 php7.1-common
|
||||
apt-get install php7.1-curl php7.1-xml php7.1-zip php7.1-gd php7.1-mysql php7.1-mbstring
|
||||
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
|
||||
|
||||
#Docker install
|
||||
|
||||
3
setup/nvm-install.sh
Normal file
3
setup/nvm-install.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
|
||||
source ~/.bashrc
|
||||
nvm install node
|
||||
Reference in New Issue
Block a user