Skip to content

Commit

Permalink
Updated deploy scripts
Browse files Browse the repository at this point in the history
-removed docker from being provisioned
-fixed the vm setup script
  • Loading branch information
mkornyev committed Apr 1, 2021
1 parent 3946b5e commit 9b72f2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ Vagrant.configure("2") do |config|
# v.memory = 2048
# v.cpus = 2
end
master.vm.provision :docker
# master.vm.provision :shell, path: GENERIC_SCRIPT
# master.vm.provision :docker
master.vm.provision :shell, path: GENERIC_SCRIPT
end

end
10 changes: 6 additions & 4 deletions vmSetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ sudo apt-get install npm

echo "Copying Over Assets"

cp /vagrant/bookApp/{index.js,db-connector.js,package.json,Dockerfile,test_endpoints.json} .
sudo cp /vagrant/bookApp/{index.js,db-connector.js,package.json,Dockerfile,test_endpoints.json} .

echo "Installing Dependencies"

npm install
sudo npm install

# echo "Testing the Application"
# artillery run test_endpoints.json
echo "Testing the Application"

sudo npm install -D [email protected] --save
sudo artillery run test_endpoints.json

# echo "Building the Docker Image"
# docker build --tag bookapp:1.0 .
Expand Down

0 comments on commit 9b72f2f

Please sign in to comment.