Giter Site home page Giter Site logo

maybelinot / ownthat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openshift-qe/ownthat

0.0 1.0 0.0 72 KB

Web app and API to manage resource reservations.

License: Other

Shell 2.34% Ruby 63.45% JavaScript 2.06% CoffeeScript 1.02% CSS 1.99% HTML 29.15%

ownthat's Introduction

OwnThat

This is a web app with REST API interface to help lock resources between independent executor processes.

e.g. you have a number of executors doing some tasks on random machines. They can use this app to reserve resources to avoid duplicate work.

Or one can have pools of resources and allow executor processes reserve from them. There is some more info in the app index page.

TODO: document the following:

  • Ruby version

  • System dependencies

  • Configuration

  • Database creation

  • Database initialization

  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

  • Deployment instructions

  • ...

Deploying on OpenShift 2.x

Note that OpenShift v2 is now superceded by OpenShift v3 which works with standard docker images. These instructions are useful until a public v3 service is readily available.

So how to deploy in OpenShift v2:

rhc create-app <app name> diy \
  MYSQL_HOST=mysql_server \
  MYSQL_DB=mydatabase \
  MYSQL_USER=username \
  MYSQL_PASSWORD='pswd' \
  AUTHZ_DB='{"admin":{"master":"masteruser_pswd"},"user":{"user":"user_pswd"}}' \
  SECRET_KEY_BASE=`bin/rails secret` \
  -n my_namespace

cd <app name>
git remote add upstream https://github.com/openshift-qe/ownthat.git
git fetch upstream
git reset --hard upstream/master
git push origin +HEAD

Please note that you could also use a mysql OpenShift cartridge but since I wanted to use an external server, I hardcode it. To make work with mysql cartridge you'd have to set the above variables inside start hook based on the MYSQL_* variables created by the mysql cart.

Note:

Usually one can use the --from-code "https://github.com/akostadinov/ownthat.git" option when creating the app. The problem is that rvm/ruby installation and the gems take too long. So the command fails. Command times out and app is removed without ability to debug what went wrong.

So I fugured I can create a DIY app without code and then import app code. In that way during git push you can see what is going on with the hooks as well it now allows more time for the operations to complete.

FYI the only needed change to run under OpenShift was creation of the action hooks under the openshift directory.

ownthat's People

Contributors

akostadinov avatar

Watchers

 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.