Vagrant Rapid Start Guide - nearform/nscale GitHub Wiki
- 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 [email protected]
npm install -g nscaleSSH into the vagrant box and run the following to start the kernel server
nsd server startBy default, login uses the email defined in ~/.gitconfig and that is all that is required.
nsd loginnsd system clone [email protected]:nearform/nscaledemo.gitnsd container build nscaledemo webReplace <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