From c62d3d19a2c1bc958825d19258344cfa0dd15d63 Mon Sep 17 00:00:00 2001 From: Joe Biellik Date: Mon, 22 Jun 2020 16:58:04 +0100 Subject: [PATCH] Delete Vagrantfile --- Vagrantfile | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 Vagrantfile diff --git a/Vagrantfile b/Vagrantfile deleted file mode 100644 index ff57a62..0000000 --- a/Vagrantfile +++ /dev/null @@ -1,38 +0,0 @@ -$provision = <<-'EOF' - #!/bin/bash -eu - - echo 'Provisioning environment...' - - if [ -f /vagrant/package.json ]; then - echo -e "\tRunning 'npm install'..." - - rm -rf /vagrant/node_modules - su vagrant -c 'mkdir -p /home/vagrant/node_modules' - su vagrant -c 'ln -s /home/vagrant/node_modules /vagrant/node_modules' - - su vagrant -c "cd /vagrant && npm install --silent > /dev/null 2>&1" - fi - - echo -e '\nFinished provisioning:\n' - printf '\tNode v%s' $(node -v | cut -d'v' -f2) - printf '\tNPM v%s' $(npm -v) -EOF - -Vagrant.configure("2") do |config| - config.vm.define "paste" - config.vm.hostname = "paste" - config.vm.box = "jcbiellikltd/centos-6-node" - config.vm.provision :shell, inline: $provision - - config.vm.network :forwarded_port, guest: 3000, host: 3000, auto_correct: true - config.vm.network :forwarded_port, guest: 27017, host: 27017, auto_correct: true - - config.ssh.insert_key = false - - config.vm.provider "virtualbox" do |v| - v.name = "paste" - v.cpus = 4 - v.memory = 2048 - v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"] - end -end