plutus-vm
plutus-vm copied to clipboard
Vagrant VM for developing plutus
Plutus VM (Ubuntu Based)
Plutus Pioneer Program
Vagrant + VBox for plutus playground
Prerequisites
- Obtain & Install Vagrant from the Official Source
- Obtain & Install VirtualBox from the Official Source
- Reboot
Installation
- Navigate to a directory of your choice and do
git clone https://github.com/edwint88/plutus-vm plutus-vm
- Navigate to inner-folder called vagrant.
cd plutus-vm/vagrant/
- In the Vagrantfile directory run & wait for provisioning to finish:
vagrant up
- When it finished provisioning, open TWO terminal windows and run in each (alternative run
tmux
in one terminal):
vagrant ssh
- In Terminal Window 1:
cd /home/vagrant/plutus/git/plutus
nix-shell
cd plutus-playground-client
plutus-playground-server -i 120s
- In Terminal Window 2:
cd /home/vagrant/plutus/git/plutus
nix-shell
cd plutus-playground-client
npm run start
- Go in your browser at https://192.168.5.21:8009 (if you changed the VM IP go to that IP)
- How to SSH-Remote from vscode: https://medium.com/@lopezgand/connect-visual-studio-code-with-vagrant-in-your-local-machine-24903fb4a9de
Update and recompile Plutus-playground for a running VM
Go to cd /home/vagrant/plutus/git/plutus
=> run git pull
=> run update /bin/bash ../updatePlutus.sh
Tips & Tricks
- If you need ghc or cabal you can enter a folder with
default.nix
and runnix-shell
over there and then change to your directory where you need to run cabal. E.g.cd /home/vagrant/plutus/git/plutus
=>nix-shell
=>cd ../plutus-pioneer-program/code/week1
=>cabal build
- If you want to use auto-complete function, then enter
nix-shell
as above and then runvim
. (This doesn't work withvscode
). You could open a Terminal window invscode
and runvim
from there.