GithubHelp home page GithubHelp logo

stevencorona / plowman Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azukiapp/plowman

0.0 0.0 0.0 256 KB

Alternative to Git Server for Openruko - Elixir/Erlang based

Shell 1.45% Elixir 98.55%

plowman's Introduction

Plowman - SSH-to-Git Server for Openruko

Build Status

This is a alternative port of gitmouth written in Elixir

Introduction

plowman is a small SSH server written in Elixir/Erlang using the crypto ssh framework to handle git push and pull commands users make to manage their remote git repositories. It authenticates the user by matching their public key fingerprint against the API server database, then asks the API server to provision a dyno (a virtualization container) with the respective git repository mounted, finally it connects to this dyno over an SSH-like protocol and runs the git-receive-pack or git- upload-pack command, which in turn will execute the buildpack via git hooks.

For those not familiar with Heroku infrastructure, as buildpacks can contain potentially dangerous code the git command has to run inside an isolated dyno too, hence gogit is simply a bridge from the ssh transport to where the git commands run inside a dyno, authenticating and authorizing the request in the pipeline.

Requirements

Tested on Mac OX 10.8.3 with Erlang R16B and Ubuntu Procise with Erlang R16B.

On Mac OS X use kerl. On Ubuntu using Erlang Solutions.

Installation

$ git clone https://github.com/azukiapp/plowman.git
$ cd plowman
$ make # If not have elixir install this in deps/elixir
$ make certs

If you receive terminated with reason: {'module could not be loaded',[{'Elixir-JSON',parse error, try this:

$ cd deps/exjson
$ PATH=../elixir/bin make clean
$ PATH=../elixir/bin make

Environment Variables

plowman will check for the presence of several environment variables, these must be configured as part of the process start.

  • APISERVER_HOST - https andress to acess api server api. Example: APISERVER_HOST=https://mymachine.me:5000

  • APISERVER_KEY - special key to authenticate with API server. Example: APISERVER_KEY=abcdef-342131-123123123-asdasd

  • DYNOHOST_PORT - port to connect dynhost build instances. Example: DYNOHOST_PORT=4000

  • PLOWMAN_PORT - port to plowman listen ssh/git connections. Example: PLOWMAN_PORT=2222

  • PLOWMAN_HOST - host andress to plowman listen ssh/git connections. Example: PLOWMAN_HOST=0.0.0.0

  • PLOWMAN_HOST_KEYS - folder with private/public rsa host keys. Example: PLOWMAN_HOST_KEYS=./certs

License

plwoman are licensed under MIT. http://opensource.org/licenses/mit-license.php

Bitdeli Badge

plowman's People

Contributors

nuxlli avatar bitdeli-chef 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.