GithubHelp home page GithubHelp logo

cschwede / django-swiftbrowser Goto Github PK

View Code? Open in Web Editor NEW
67.0 8.0 50.0 288 KB

Simple web app build with Django and Twitter Bootstrap to access Openstack Swift.

License: Apache License 2.0

Python 55.61% HTML 44.02% Dockerfile 0.37%

django-swiftbrowser's Introduction

django-swiftbrowser

Build Status

Simple web app build with Django and Twitter Bootstrap to access Openstack Swift.

  • No database needed
  • Works with keystone, tempauth & swauth
  • Support for public containers. ACL support in the works
  • Minimal interface, usable on your desktop as well as on your smartphone
  • Screenshots anyone? See below!

Quick Install

  1. Install swiftbrowser:

    pip install django-swiftbrowser

  2. Please make sure that "tempurl" and "formpost" middlewares are activated in your proxy server. Extract from /etc/swift/proxy-server.conf:

    [pipeline:main] pipeline = catch_errors gatekeeper healthcheck proxy-logging cache tempurl formpost tempauth proxy-logging proxy-server

    [filter:tempurl] use = egg:swift#tempurl

    [filter:formpost] use = egg:swift#formpost

  3. Run development server:

    django-admin runserver --settings=swiftbrowser.settings

  4. Open "http://127.0.0.1:8000/" in your browser and use 'account:username' to login (or tenant/project:username if using Keystone).

Running with Docker

The included Dockerfile makes running django-swiftbrowser even easier. First build the Docker container:

docker build . -t swiftbrowser

Now run the container and point it to your Swift cluster, eg:

docker run -d -p 8000:8000 \
    -e SECRET_KEY=CHANGE_THIS_TO_SOME_RANDOM_VALUE \
    -e SWIFT_AUTH_VERSION=1 \
    -e SWIFT_AUTH_URL=http://192.168.2.200:8080/auth/v1.0 \
    -e STORAGE_URL=http://192.168.2.200:8080/v1 \
    swiftbrowser

You can also run the tox test environment inside the container:

docker run swiftbrowser tox

Screenshots

Login screen Container view Object view

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.