Coder Social home page Coder Social logo

ultrahook's Introduction

Ultrahook Client for OpenShift

This repository contains s2i ready OpenShift application based on Ultrahook Client

Usage

Deployment

To import the template, run:

oc apply -f openshift/ultrahook.app.yaml

To import API key secret, run:

oc process -f openshift/ultrahook.secret.yaml ULTRAHOOK_API_KEY=`echo -n "<your_api_key>" | base64` | oc apply -f -

To deploy the ultrahook client, run:

oc process ultrahook ULTRAHOOK_SUBDOMAIN=<some_subdomain> ULTRAHOOK_DESTINATION=<destination_url> | oc apply -f -

Or you can do the same thing in OpenShift Console UI.

You will find a new DeploymentConfig with name ultrahook-<some_subdomain>.

Webhook Configuration

When you register at http://www.ultrahook.com, you will choose webhook namespace and you will get API key. As you can see above, you need to provide your API key to the deployment. Then you need to choose a subdomain - so that you can use your namespace for multiple destinations. The generated webhook URL will then look like

http://<some_subdomain>.<namespace>.ultrahook.com

Which means that if your OpenShift URL is https://my.openshift.com (which is what you put in for ULTRAHOOK_DESTINATION) and your build config webhook looks like (generated by OpenShift)

https://my.openshift.com/oapi/v1/namespaces/somenamespace/buildconfigs/mybuild/webhooks/secret101/github

what you paste in Github webhook configuration will look like

http://<some_subdomain>.<namespace>.ultrahook.com/oapi/v1/namespaces/somenamespace/buildconfigs/mybuild/webhooks/secret101/github

Local build

Build locally as:

s2i build --copy . centos/ruby-24-centos7 ultrahook

Run locally as:

docker run --rm -it -e ULTRAHOOK_API_KEY=<your_api_key> -e ULTRAHOOK_SUBDOMAIN=<some_subdomain> -e ULTRAHOOK_DESTINATION=<destination_url> ultrahook

ultrahook's People

Contributors

vpavlin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

ultrahook's Issues

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.