Giter Club home page Giter Club logo

adoponopenshift's Introduction

Prerequisites

  • Have an OpenShift instance running. This could be :
    • OpenShift Container Platform
    • OpenShift Origin
    • Minishift
  • Git installed

Want to run everything on Microsoft Azure? Have a look at this repository for a set of ARM templates on different OpenShift versions.

How to run Adop on OpenShift

Adop is a large solution with a lot components, so, before going on the installation of Adop on OpenShift, you should download Adop images on your OpenShift cluster. For that purpose, you can use the adop_warmup.sh script on all your OpenShift nodes.

Manually

To run ADOP on Openshift, you should do the following steps.

  1. Log in as system:admin on your openshift ClusterFirst
    oc login -u system:admin
  2. Create a project called "adop"
    oc new-project adop
  3. Set up roles and scc for serviceaccounts in project "adop" to allow them to deploy ADOP containers without authorization issues.
    oadm policy add-scc-to-group anyuid system:serviceaccounts:adop
    oadm policy add-role-to-user edit system:serviceaccount:adop:adop
  4. Clone git repository
    git clone https://github.com/clerixmaxime/AdopOnOpenshift.git
  5. Move to directory
    cd ./AdopOnOpenshift
  6. Populate Openshift with ADOP Templates
    oc create -f templates/
  7. Deploy templates
# Create MYSQL databases for Gerrit and Sonar using template provided by OpenShift (Could be replaced by persistent template).
oc new-app mysql-ephemeral -p MYSQL_PASSWORD=gerrit -p MYSQL_DATABASE=gerrit -p MYSQL_USER=gerrit -p MYSQL_ROOT_PASSWORD=gerrit -p MYSQL_VERSION=5.6 -p DATABASE_SERVICE_NAME=gerrit-mysql -n adop

oc new-app mysql-ephemeral -p MYSQL_PASSWORD=sonar -p MYSQL_DATABASE=sonar -p MYSQL_USER=sonar -p MYSQL_ROOT_PASSWORD=sonar -p MYSQL_VERSION=5.6 -p DATABASE_SERVICE_NAME=sonar-mysql -n adop

oc new-app adop-ldap
oc new-app adop-gerrit
oc new-app adop-sensu
oc new-app adop-sonar
oc new-app adop-jenkins
oc new-app adop-nexus
oc new-app adop-selenium
oc new-app adop-proxy

/!\ you should wait for adop-gerrit deployment completion before launching Jenkins

Automatically via a script

  1. Log in as system:admin on your OpenShift Cluster
    oc login -u system:admin
  2. Download script deploy_adop.sh under /scripts
  3. Execute deploy_adop.sh with parameters according your environment
./deploy_adop.sh PROJECT_NAME PROJECT_DISPLAY_NAME PROJECT_DESCRIPTION SUB_DOMAIN
Example:
./deploy_adop.sh adop "Adop project" "Deployment of ADOP by Accenture" apps.example.com
  • There are four parameters for this script:
    PROJECT_NAME
    PROJECT_DISPLAY_NAME
    PROJECT_DESCRIPTION
    SUB_DOMAIN (This parameter should match the wildcard of your cluster)

After that, the ADOP stack should be deployed and available in your Openshift cluster.

TODO

adoponopenshift's People

Contributors

lbroudoux avatar

Watchers

SG 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.