Coder Social home page Coder Social logo

goneri / dci-control-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from redhat-cip/dci-control-server

0.0 2.0 0.0 574 KB

Distributed CI Control-Server

License: Apache License 2.0

ApacheConf 0.08% Shell 4.16% Python 62.68% PLpgSQL 14.00% JavaScript 9.55% CSS 1.34% HTML 8.18%

dci-control-server's Introduction

# DCI Control-server

installation

Using OpenShift

OpenShift is the simplest and recommanded way to deploy the Control-Server.

First create an account on OpenShift website, install the rhc command and run rhc setup.

In this example mydomain is your domain as returned by the rhc domain list command.

$ rhc create-app dcistable python-3.3 postgresql-9.2
(...)
Your application 'dcistable' is now available.
  URL:        http://dcistable-mydomain.rhcloud.com/
  SSH to:     [email protected]
  Git remote: ssh://[email protected]/~/git/dcistable.git/
  Cloned to:  /home/goneri/dcistable
$ rhc env set --app stable ADMIN_PASSWORD=admin
$ git push ssh://[email protected]/~/git/dcistable.git/ master:master -f

Your website should be able on the http://dcistable-mydomain.rhcloud.com/ URL. If it's not the case, you can call rhc tail dcistable to watch the application logs.

Manual

PostgreSQL configuration

install and configure PostgreSQL:

# yum install postgresql-server postgresql-contrib

Allow local account with password:

# editor /var/lib/pgsql/data/pg_hba.conf

Add the following line on the top of the file:

host    all             all             127.0.0.1/32            md5

Restart PostgreSQL with the new settings:

# systemctl restart postgresql.service

Connect with the postgres user:

sudo su - postgres
$ createuser -P boa
Enter password for new role:
Enter it again:

$ createdb boa -O boa
$ psql -U boa -W -h 127.0.0.1 dci_control_server < db_schema/dci-control-server.sql

Development

dependencies to run tox

Fedora 22

# dnf install nodejs npm python-tox postgresql-server postgresql-devel postgresql-contrib
# dnf install python-devel python3-devel libffi-devel git
# npm install jscs -g

REST interface

The REST API is available for any type of objects. You can browse the database on http://127.0.0.1:5000/.

The API documentation

By installing these extra requirements, you can enable the /docs API documentation end-point:

# pip install git+https://github.com/hermannsblum/eve-docs
# pip install Flask-Bootstrap

dci-control-server's People

Contributors

goneri avatar ylamgarchal avatar

Watchers

 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.