Ranko is a containerised application using Docker. As such a test environment needs to be set up in order to test that Ranko correctly works inside of a container. Here are the instructions to set up that test environment:
- Install VirtualBox v6.0.14+ (Download from here)
- Install Vagrant v2.2.7+ (Download from here)
- Inside the Ranko code directory run
vagrant up
- Once the above command has finished outputting to your command prompt, run
vagrant ssh
to connect into your test environment
NOTE: On first install of this environment it will take a long time to download the necessary VM image but this won't be required for subsequent installations
The code for Ranko is stored in the /vagrant
folder in the test environment. When you are finished doing your docker testing disconnect from the environment with Ctrl + d
and then remove the environment with vagrant destroy
.
To run Ranko:
- In the root module directory (the one containing go.mod), run
go build
. This will create an executable calledranko
(orranko.exe
on Windows) - Run the executable