Giter Club home page Giter Club logo

vagrant-swift-all-in-one's Introduction

vagrant-swift-all-in-one

A Swift-All-In-One in a few easy steps.

  1. vagrant up
  2. vagrant ssh
  3. echo "awesome" > test
  4. swift upload test test
  5. swift download test test -o -

This project assumes you have Virtualbox and Vagrant.

running-tests

You should be able to run most tests without too much fuss once SSH'ed into the VM.

  1. .unittests
  2. .functests
  3. .probetests
  4. vtox -e pep8
  5. vtox -e py27
  6. vtox # run all gate checks

localrc-template

A few things are configurable, see localrc-template.

  1. cp localrc-template localrc
  2. vi localrc
  3. source localrc
  4. vagrant provision
  5. vagrant ssh
  6. rebuildswift

s3cmd

You know you want to play with s3api, we got you covered.

vagrant ssh
s3cmd mb s3://s3test
s3cmd ls

ninja-dev-tricks

You should add the configured IP from your localrc to your /etc/hosts or use the default:

sudo bash -c 'echo "192.168.8.80    saio" >> /etc/hosts'

Then you can easily share snippets that talk to network services running in your Swift-All-In-One from your host!

curl -s http://saio:8080/info | python -m json.tool

A few scripts are available to make your dev life easier.

  1. vagrant up --provision will bring up your VM in working order (useful when your VM is halted)
  2. source localrc; vagrant provision on your host to push the new Chef bits in place (useful if you change localrc)
  3. rebuildswift to reapply everything like it would be at the end of Chef time (useful to revert local config changes)
  4. resetswift will wipe the drives and leave any local config changes in place (useful just to clean out Swift data)
  5. reinstallswift will make sure all of the bin scripts are installed correctly and restart the main swift processes (useful if you change branches)
  6. autodoc [swift|swift-specs|swiftclient] will build the sphinx docs and watch files for changes, and upload them to a public container on your vm so you can review them as you edit
  7. vtox will hack the local tox.ini and setup.py so you can run tox tests successfully on the swift repo in the /vagrant directory
  8. reec will rebuild/reinstall all the liberasure/pyeclib[/isa-l] bits!

vagrant-swift-all-in-one's People

Contributors

clayg avatar tipabu avatar smerritt avatar dbishop avatar orion avatar goodes avatar filippog avatar notmyname avatar fanatic avatar otherjon avatar klrmn avatar pchng avatar rbramley avatar timuralp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.