Public | Automated Build

Last pushed: 7 months ago
Short Description
Guestfolio CLI
Full Description

Guestfolio Command Line Tools (in Docker)

This repo is made up of two parts:

  • The gfio-cli docker image source, and
  • The gfio helper script for executing things in said image.

gfio-cli wraps up a bunch of binaries needed for operationsy type things. This
helps cut down on install time and ensures a uniform environment across team

For example:

  gfio aws configure
  gfio terraform plan # etc

It also has some short-cut commands to help with common tasks such as running
deploys, creating

The gfio helper command just executes whatever you ask it to, inside the
gfio-cli docker image.


  • Run the installer
  curl | bash

If you have an existing install, move your .gfio folder to another place and
copy you existing profiles back once installation is complete.

  • Reload your shell!

  • Run AWS config

  cd ~
  gfio aws configure

In each environment you can use gfio link-aws and gfio link-docker to connect
your default credentials.

gfio-cli Profiles

When gfio is called, it walks up the directory tree
looking for a .gfio_profile file, expecting it to contain the name of the
profile you currently wish to use.

A "profile" being your home directory inside the container.

  $ echo "staging" > .gfio_profile

  $ gfio echo "\$HOME"

  $ gfio pwd

  $ echo "export FOO=BAR" >> ~/.gfio/staging/.bashrc
  $ gfio echo "\$FOO"



Allows you to run docker-compose against the infrastructure.

  gfio compose <hostname> <docker-compose commands>


Provision a new server in the cloud

AWS: (default: t2.small)

    gfio machine-create-aws
    AWS_INSTANCE_TYPE=c4.large gfio machine-create-aws

Rackspace: (default: general.4gb)

  gfio machine-create-rs
  OS_FLAVOR_ID=general1-2 gfio machine-create-rs


Destroy a server (use with care!)

  gfio machine-destroy


Pull down latest certificates from S3

  gfio machine-pull


Push your certificate changes to S3

  gfio machine-push


Install Loggly on a new server

  gfio machine-install-loggly


Install New Relic agent on a new server

  gfio machine-install-newrelic

Developing and Building

  • Make changes
  • Run Makefile make build
  • Happy? make push
Docker Pull Command
Source Repository