Take advtanage of your 5 free GB while it lasts! Sign up and start using FlockerHub
This is the first post in a series that is aimed at getting you off the ground running and using Fli and FlockerHub.
Use Vagrant and VirtualBox
In this section we will use the development tool from HashiCorp called Vagrant to create a reproducible file that can bootstrap us directly into a Fli environment. We’ll also be using VirtualBox as our Mac OSX hypervisor, which will allow us to start a Linux environment that is supported by Fli on a Mac.
Prerequisites for Mac
If you don’t already have Git, Vagrant or VirtualBox, download and install them now.
- Download and install Vagrant
- Download and install VirtualBox
- Download and install Git
If you would like to view the video, see below.
Copy the pre-baked
We have provided a Vagrantfile for you to use in our GitHub repository.
To copy the repository that contains the
Vagrantfile, open a terminal window and type the following.
Start the Environment
vagrant upmay take several minutes, especially if you need to download the Ubuntu 16.04 Box. Hang tight. You will see no more output once it’s done.
To check to make sure your machine is running, run the
vagrant status command.
SSH into your new machine and start using Fli!
As long as your machine status is
vagrant up, you can get started using Fli!
Sync and Push your new volumeset!
First, you need a token.
Copy the contents of the authentication token file
token.txt to a file in your new machine.
Once your token is on the machine, configure Fli with it.
Then, you can
push your data!
Visit your volumesets page to see your newly created volumeset.
Where to Go From Here
Check out our How To Examples for using Fli. There are also videos below for other use cases!
Notes About the Environment
This environment above only provisions 5GB worth of underlying storage, which is also the alloted free amount with new FlockerHub accounts.
If you wish to use more data than this, email email@example.com and also take a look at the
Vagrantfile for how the underlying storage is set up.
Clean Up / Refresh the Environment
To refresh your local environment at any point (aka “start fresh”),
exit out of your
ssh session and type a
vagrant destroy then
vagrant up again.
We hope this was useful! We will continue to post new blogs in this series as well as use cases for Fli and FlockerHub, so stay tuned!