Giter VIP home page Giter VIP logo

mitro's Introduction

Mitro over CentOS

A first attempt to dockerize the Mitro Password Manager after being released under GPL. I claim no authority in the field, i'm just trying to set up a simple deployment process for a Mitro server. Contributions are welcomed!

Quick Start

  1. Clone the project and build the mitro and emailer images

    git clone https://github.com/servomac/mitro.git
    cd mitro/centos
    docker build -t mitro:centos6 .
    
    cd ../emailer
    docker build -t emailer .
    
  2. Run postgres

    docker run --name mitro-postgres -e POSTGRES_PASSWORD="AGOODPASS" -d postgres
    
  3. Execute the mitro server

    docker run --restart 'always' \
                --name mitro \
                --link mitro-postgres:db \
                -e DOMAIN="mitro.domain.com" \
                -p 0.0.0.0:8443:8443 \
                -d mitro:centos6
    
  4. Execute the emailer container

    docker run --restart 'always' \
                --name mitro-emailer \
                --link mitro-postgres:db \
                -e MANDRILL_API_KEY="apikey" \
                -e DOMAIN="mitro.domain.com" \
                -d emailer
    

Generate the browser extensions

Once you have the server up and running, you can generate the browser extensions (chrome, firefox, even a python-hosted webpage) and copy them to the host:

  $ docker exec -it mitro bash
  [root@629244ad0dbf login]# cd ../browser-ext/api/
  [root@629244ad0dbf login]# ./build.sh
  [root@629244ad0dbf login]# cd ../login
  [root@629244ad0dbf login]# make firefox chrome
  [root@629244ad0dbf login]# scp -r build/{firefox,chrome}/ [email protected]:
 

Install the extension in your desired browser and add the certificate. TODO.

Backup

docker run -it --link mitro-postgres:db --rm postgres sh -c 'PGPASSWORD=$DB_ENV_POSTGRES_PASSWORD exec pg_dump -h "$DB_PORT_5432_TCP_ADDR" -p "$DB_PORT_5432_TCP_PORT" -U postgres mitro' | bzip2 > mitro.sql.bz2

References

mitro's People

Contributors

tpizah avatar

Watchers

James Cloos avatar  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.