diff --git a/Vagrantfile b/Vagrantfile index 3d18a59..ce6c6bd 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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 diff --git a/setup/build.sh b/setup/build.sh index 9df1832..2168e74 100644 --- a/setup/build.sh +++ b/setup/build.sh @@ -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 diff --git a/setup/nvm-install.sh b/setup/nvm-install.sh new file mode 100644 index 0000000..a58c1ac --- /dev/null +++ b/setup/nvm-install.sh @@ -0,0 +1,3 @@ +curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash +source ~/.bashrc +nvm install node \ No newline at end of file