Coder Social home page Coder Social logo

vft-swift's Introduction

vft-swift

Prerequisites

Installation

Install virtualenv using pip

$ pip install virtualenv

Clone the vft-swift repo

$ git clone [email protected]:ValleyForgeTech/vft-swift.git
$ cd vft-swift

Create a virtual environment

$ virtualenv venv

Activate your virtual environemtn

$ source venv/bin/activate

Install the project requirements

$ pip install -r requirements.txt

Configure your AWS Key/Secret

Boto can be configured to talk to AWS in manyg ways. The convention we use is to use the ~/.aws/credentials file.

$ mkdir ~/.aws
$ touch ~/.aws/credentials

Edit the ~/.aws/credentials folder and add the following. Replace YOUR_KEY and YOUR_SECRET with your AWS key/secret combination.

[default]
aws_access_key_id = YOUR_KEY
aws_secret_access_key = YOUR_SECRET

As an alternative, you can create a ~/.boto file with the following:

[Credentials]
aws_access_key_id = YOUR_KEY
aws_secret_access_key = YOUR_SECRET

Deploying the Swift Cluster to EC2

To execute, run the following command

$ fab build_swift_cluster

Copy the rysyncd.conf file to your directory

Testing

$ swift -A http://<YOUR_EC2_IP>:8080/auth/v1.0 -U test:tester -K testing stat
$ swift -A http://<YOUR_EC2_IP>:8080/auth/v1.0/ -U test:tester -K testing upload test2 *.txt
$ swift -A http://<YOUR_EC2_IP>:8080/auth/v1.0/ -U test:tester -K testing list
$ swift -A http://<YOUR_EC2_IP>:8080/auth/v1.0/ -U test:tester -K testing list test2

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.