Skip to content

marsmensch/bismuth-testenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bismuth test environment

Bismuth logo

Tools used

This setup is designed around Vagrant. Vagrant is an open source tool from the DevOps world that is often used to provision development environments automatically.

The final result

You need the following set of tools to start:

Start of the Environment

The Vagrantfile in this repository contains the complete configuration of the environment. This means the definition of the Linux distribution, the networking parameter, packages to install and many things more. Check the Vagrant documentation for pointers whats possible.

Since the configuration of Vagrant and the environment to create is all part of the source (git) repository, the environment can easily be destroyed and re-created within a couple of minutes.

Clone the repo

Exactly like with any other development workflow, the initialisation of this environment is created by checking out this source code repository.

$ git clone https://github.com/marsmensch/bismuth-testenv

One command to rule them all

In a console (for Windows use Git-Bash) open the cloned directory bismuth-testenv and execute the one and only required command to create the environment:

$ vagrant up

No kidding, that's it!

What happens now is a bit of DevOps magic. After a couple of minutes, the following things happened:

  • Vagrant created and configured a virtual machine via VirtualBox
  • The shell script vagrant_provision.sh installs our desired set of packages
  • Vagrant automatically configures a couple of useful shortcuts like a shared folder in /vagrant with the host system and convenient passwordless logins via SSH Keys to the VM.
    The box has 2048 MB of RAM and 2 CPU cores assigned. Change that in the `Vagrantfile` if you want more or less RAM/CPU.

The VM windows is also shown for your convenience (Vagrant normally hides it), so you can login graphically and test e.g. graphical wallets.

Connect to your VM

Connecting to your VM is as easy as run a command in a terminal. You need exactly one command to connect:

$ vagrant ssh

For SSH connections Vagrant looks for a SSH client (ssh.exe) in your $PATH. This is already the case for OSX and Linux. On Windows you want to install Git for Windows for this.

Working with your new VM

As noted above, the included shell script vagrant_provision.sh installs your desired set of packages. The example i currently provide with the source installs the $RNS wallet. It can be started via after installation with the command: 

$ /usr/local/bin/bismuth

Have fun and stay tuned for the next entry!

About

a test environment for bismuth

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages