This repository has been archived by the owner on Mar 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Vagrant Rapid Start Guide
davidmarkclements edited this page Sep 7, 2014
·
3 revisions
- VirtualBox 4.3.10 or greater.
- Vagrant 1.6 or greater.
Replace <name> and <email> with your git username and email.
vagrant init 3scale/docker
vagrant up
vagrant ssh
sudo apt-get update
sudo apt-get install nodejs npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo chown -R vagrant:vagrant /usr/local
sudo chown -R vagrant:vagrant /var/run/docker.sock
git config --global user.name "<name>"
git config --global user.email <email>
echo 'export DOCKER_HOST=tcp://127.0.0.1:4243' >> ~/.profile && . ~/.profile
Replace <email> with your git email and press enter when asked for a passphrase:
ssh-keygen -t rsa -C "<email>"
Copy the contents of /home/vagrant/.ssh/id_rsa.pub to github:
Test it works:
ssh -T git@github.com
npm install -g nscale
SSH into the vagrant box and run the following to start the kernel server
nsd server start
By default, login uses the email defined in ~/.gitconfig and that is all that is required.
nsd login
nsd system clone git@github.com:nearform/nscaledemo.git
nsd container build nscaledemo web
Replace <revision_id> with the latest revision shown by the revision list command.
nsd revision list nscaledemo
nsd revision deploy nscaledemo <revision_id>
curl http://127.0.0.1:8000