2. What’s in here?
1. Brief review of Fli and FlockerHub
2. Getting Started with Fli using AWS
CloudFormation
3.
4.
5. Introduction
● FlockerHub is a Hub for data, like GitHub is a Hub for source code and
DockerHub is a Hub for container images.
● Specifically, FlockerHub lets you store your Docker data volumes and organize
them into volumesets and branches that are owned by organizations, teams and
individual users.
● FlockerHub also provides a user interface for organizing and controlling access
to snapshots.
● Docs at https://flockerhub-docs.clusterhq.com
6.
7. Introduction
● Fli, the FlockerHub CLI, is like Git for data. Just like you can use Git to copy, branch,
push and pull code, you can use Fli to copy, branch, push and pull your data volumes.
● Fli lets you take incremental snapshots of any database or data volume that runs on
Linux and push those snapshots to a hosted volume repository called FlockerHub.
● There they can be accessed by any person or machine to whom you’ve granted
access. Fli can also be used without FlockerHub to manage data volumes locally.
● Open-source: https://github.com/clusterhq/fli
● Docs https://fli-docs.clusterhq.com
11. If you want to
follow long
● An AWS account. You can sign
up for free here.
● An SSH client. ssh from a Linux
or Mac terminal, or something like
PuTTY on Windows.
*new regions such as Canada, London and Ohio are currently
unsupported.
12. What we will be
doing
● Go to the Amazon
CloudFormation Console.
● Click “Create Stack”
● Choose “Upload a template”, and
then choose the
fli-CloudFormation-Ubuntu
16.04 template from this
repository.
● Click “Next”
● Choose your SSH Key and give
your Stack a name.
● Click “Create” to start the Stack.
13. ● CloudFormation will output the DNS address of your
new Fli client in the “output” tab. SSH to this
address.
14. Setup Fli with your ZPOOL and Token
$ ssh -i ~/yourkey.pem ubunutu@<DNS-NAME-FROM-CLOUDFORMATION-OUTPUT>
$ sudo su
$ fli setup --zpool chq
$ fli config --token /root/token.txt
15. Use Fli
$ fli init MyFirstVolumeset -a owner=me,env=cf -d "My first volumeset for
snapshots!"
$ fli create MyFirstVolumeset my-first-volume -a first_volume=true
$ fli snapshot MyFirstVolumeset:my-first-volume MySnapshot
$ fli sync MyFirstVolumeset
$ fli push MyFirstVolumeset:MySnapshot
16. Recording of getting started with AWS
CloudFormation
https://youtu.be/hE3P-hkNUR8
Blog Post Version
https://clusterhq.com/2016/12/14/fli-aws-cf/