-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploy local-setup on virtual machine using Packer & Vagrant #12
Conversation
Added Packer template to build a Vagrant box provisioned with all tools needed to install and run local-setup environment.
This reverts commit fed4466
Testnet relay (and python) is not necessary if local btcd and ElectrumX are used.
Added several provisioning scripts for Vagrant which run auxilliary software (geth, btc core, electrum) and install local-setup.
|
We can ignore the CI build here because this branch doesn't contain a CircleCI config. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First pass - more to come.
Can you please summarize for future-us what those problems are in the PR description? |
The problem with |
Some closing thoughts:
|
I was able to run the end-to-end test using local deployment and vagrant deployment a couple of times 👍 |
Pro-tip. If you ever encounter the problem like:
It happened to me that Electrum shut down with no explanation 🤷 |
Refs #8
Here we introduce some provisioning scripts and Packer & Vagrant configs which can be used to run the
local-setup
repo on a separate virtual machine. This is a better alternative for manual installation on the local development machine because:local-setup
installation and configuration so one can avoid problems caused by tools updatesProvisioning scripts are divided into two directories:
local-setup-environment
: those scripts are responsible to prepare the environment containing all prerequisites needed to installlocal-setup
and run the E2E test scripts. Additionally, this directory contains apackerfile.json
which can be used by Packer to build the environment as a reusable Vagrant box or Docker image (this one has limited functionality)local-setup-instance
: those scripts are responsible to run all auxiliary software and thelocal-setup
installation script itself. Their outcome should be properly configured and ready to worklocal-setup
instance. Additionally, this directory contains aVagrantfile
which can be used by Vagrant to run a provisioned VM automatically.