Skip to content

Instantly share code, notes, and snippets.

@lenards
Created January 11, 2017 00:01
Show Gist options
  • Save lenards/dec780aca7d0cd48b6d536499c94cc9a to your computer and use it in GitHub Desktop.
Save lenards/dec780aca7d0cd48b6d536499c94cc9a to your computer and use it in GitHub Desktop.

TOPIC: Local Development Environments

date: 2017-01-10 where: Python Meetup

Who Am I?

  • Andrew Lenards
    • (GitHub: @lenards)
    • (Twitter: @alenards)

Tagline: primary sling JavaScript served by a Django App

Tool Landscape

  • OS: Mac OS X, Linux (Ubuntu)
  • Editor: emacs
  • VCS: git
  • Programming Languages:
    • JavaScript
    • Python
  • Configuration Automation:
    • Ansible

Usage Scenario

We build a friendly environment for accessing on-demand compute resources

Product: Atmosphere

Domain: Science Community: University Research

Development Environment

We have a configurable set of Django Applications that communication with OpenStack to carry out requests for "virtual machine":

  • creation
  • suspension
  • destruction
  • block-device attachment
  • etc

Those applications declare their deployment variables as YAML for input into Ansible playbooks

The declaration of variables is version controlled, along with a local virtual machine description:

  • Vagrant
    • provider: VirtualBox

Ideal Steps

  1. clone the deployment variables repo
  2. vagrant up
  3. run clank
  4. profit

The Struggle is real

Use the "sync-folder" as a pass-through from HOST -> GUEST

Made available as /vagrant within GUEST

127.0.0.1 Sweet 127.0.0.1

  • dotfiles
  • dot-emacs.d

Why emacs?

It could just as easily be vi/vim

Want something that works headless, via a shell session

As a former Sublime Text user, needed to replicate "narrowing" to select files by sub-strings

Ideas? Suggestions?

Send'em to me on Twitter, @alenards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment