- Download and install Docker.
- Download and install VSCode.
- Download and install Vagrant.
- [Mac/Linux only] Install Ansible.
- Run
ansible-galaxy install -r requirements.yml
in this directory to get the required Ansible roles. - Run
vagrant up --provider=docker --provision
to build the VM. - Run
vagrant ssh-config
this will output valid configuration for an SSH config file to SSH into the running Vagrant machine from ssh directly. - Copy output from above command and paste it in
~/.ssh/config
file
cat ~/.ssh/config
Host node
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile /Users/asharma/git/vagrant/.vagrant/machines/ node/docker/private_key
IdentitiesOnly yes
LogLevel FATAL
ForwardAgent yes
Note for Windows users: This guide assumes you're on a Mac or Linux host. Windows hosts are unsupported at this time.
- Open Remote Explorer in VSCode, select node, while selecting path, put
/vagrant
- Run
nodemon app.js