GithubHelp home page GithubHelp logo

codonhooks's Introduction

Codon Hooks - We are the build server

Introduction

These two git hooks provide the functionality of the Heroku codon build server, they are implemented in Bash for simplicity. The pre-signed S3 URL to download the repo and a pre-signed PUT URL for the updated repo and compiled slug are provided to the job via environment variables (as part of the dyno execution manifest). The hooks are mount binded on the repo/hooks directory during dyno creation to avoid duplication and to propagate hook changes without complexity.

The dynohost runs git-receive-pack and thus these hooks under the non-privilege rukouser account in an LXC dyno just like a provision dyno.

Requirements

Tested on Linux 3.2 using Bash 4

On a fresh Ubuntu 12.04 LTS instance:

apt-get install git
apt-get install curl
apt-get install libssl0.9.8
apt-get install libltdl7 # for php buildpack to work

On a CentOS 6.3 instance:

yum install git
yum install curl
yum install openssl098e
ln -s /usr/lib64/libssl.so.0.9.8e /usr/lib64/libssl.so.0.9.8
ln -s /usr/lib64/libcrypto.so.0.9.8e  /usr/lib64/libcrypto.so.0.9.8
yum install libtool-ltdl

Please share experiences with CentOS, Fedora, OS X, FreeBSD etc...
Note: buildpacks might have environment dependencies that you need to add to the host OS.


i.e. ruby buildpack wont be supported unless you have installed ruby in host, even though you might vendor Ruby with your project the Ruby buildpack relies on Ruby.

I couldnt get the buildpack for ruby to work using the default 1.8x, instead I installed 1.9.1 on the host and changes /etc/alternatives/ruby to point to that, as /etc/alternatives is bind mounted into the lxc container.


Installation

Step 1:

git clone https://github.com/openruko/codonhooks.git codonhooks  

Step 2:

Configure dynohost CODONHOOKS_PATH env var to point to this checkout directory.

Environment Variables

Passed through from the API server to the dynohost to ps-run to git-receive-pack and finally to the hooks.

Help and Todo

Make more resilent regarding error handling, log and report errors.

Tests

To test codonhooks first create /app dir owned by your user. It is needed by php buildpack

sudo mkdir /app
sudo chown $USER. /app
./run-tests.sh

License

codonhooks and other openruko components are licensed under MIT.
http://opensource.org/licenses/mit-license.php

Authors and Credits

Matt Freeman
email me - im looking for some remote work
follow me on twitter

codonhooks's People

Contributors

filirom1 avatar sitepodmatt avatar tombh avatar

Watchers

Rico Moorman avatar 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.