on the basis of Ubuntu 22.04 LTS ("Jammy Jellyfish") with pre-installed software e.g. Foundry + Hardhat (*) to get started straight away.
(* Hardhat needs a local installation within a project.)
See bootstrap.sh for software versions.
➡️ https://www.vagrantup.com/downloads
➡️ https://www.oracle.com/virtualization/technologies/vm/downloads/virtualbox-downloads.html (or https://download.virtualbox.org/virtualbox)
$ sudo dpkg -i virtualbox-_VERSION_~Ubuntu~_PLATFORM.deb
$ sudo apt-get install --fix-broken install
-
Clone this repo
$ git clone git@github.com:Dakavon/foundry-vagrant-env.git
-
Go into the download folder and prepare development environment with
$ cd foundry-vagrant-env $ vagrant up
-
Wait until it is finished :)
-
The Vagrant VM is now running. To shut it down, you can enter the following:
$ vagrant halt
-
If you haven't already create a DAPPS folder within your users home folder, e.g. vua terminal
$ mkdir ~/DAPPS
-
Open VM installation folder in a terminal
-
Start VM and log in
$ vagrant up && vagrant ssh
-
Go to ~DAPPS folder inside the VM
vagrant@devVM:~$ cd ~/DAPPS/
-
Clone project from
_REPOSITORY_
to your DAPPS folder (likely from outside the VM due to public-key authentication)$ git clone git@github.com:_REPOSITORY_
and go to
_PROJECT_
folder inside the VMvagrant@devVM:~/DAPPS$ cd _PROJECT_
and e.g.
-
install dependencies via
vagrant@devVM:~/DAPPS$ npm install
-
or use hardhat within project through local installation
vagrant@devVM:~/DAPPS/_PROJECT_$ npm install --save-dev hardhat
-
-
Or set up a new
_PROJECT_
with Foundryvagrant@devVM:~/DAPPS$ mkdir _PROJECT_ && cd _PROJECT_
vagrant@devVM:~/DAPPS/_PROJECT_$ forge init _PROJECT_NAME_
In case
forge
is not available, tryvagrant@devVM:~/DAPPS/_PROJECT_$ foundryup
- Go to the download folder and delete development environment with
$ cd foundry-vagrant-env $ vagrant destroy