GithubHelp home page GithubHelp logo

default-pipelines's Introduction

Criação do projeto

Criação dos projetos no openshift

Projeto banestes-cicd-tools

$ oc new project banestes-cicd-tools

Install latest jenkins
Note

Import the latest image first.

$ oc import-image jenkins:v3.9.33-3 -n openshift --from=registry.access.redhat.com/openshift3/jenkins-2-rhel7:v3.9.33-3 --confirm

$ oc tag jenkins:v3.9.33-3 jenkins:latest -n openshift

Execute the following command:

$ oc new-app jenkins-persistent -p MEMORY_LIMIT=2Gi -p VOLUME_CAPACITY=4Gi
Install Gogs
$ oc new-app postgresql-persistent \
    --param POSTGRESQL_DATABASE=gogs
    --param POSTGRESQL_USER=gogs \
    --param POSTGRESQL_PASSWORD=gogs \
    --param VOLUME_CAPACITY=4Gi \
    --param DATABASE_SERVICE_NAME=postgresql-gogs \
    -lapp=Gogs

$ oc new-app wkulhanek/gogs:11.53 -lapp=Gogs

$ echo "apiVersion: v1
kind: PersistentVolumeClaim
metadata:
    name: gogs-data
    labels:
        app: "Gogs"
spec:
    accessModes:
    - ReadWriteOnce
    resources:
        requests:
            storage: 4Gi" | oc create -f -

$ oc set volume dc/gogs --add \
    --overwrite --name=gogs-volume-1 \
    --mount-path=/data/ --type persistentVolumeClaim \
    --claim-name=gogs-data
Note

The following app.ini in the following repo: [put repo raw resource]. Don’t forget to change the route to the route pattern of your OpenShift installation.

$ oc create configmap gogs --from-file=app.ini

Projeto test-dev

$ oc new-project test-dev

Projeto test-hml

$ oc new-project test-hml

Projeto test-prd

$ oc new-project test-prd

Configuring permissions

$ oc policy add-role-to-user admin system:serviceaccount:banestes-cicd-tools:jenkins -n test-dev

$ oc policy add-role-to-user admin system:serviceaccount:banestes-cicd-tools:jenkins -n test-hml

$ oc policy add-role-to-user admin system:serviceaccount:banestes-cicd-tools:jenkins -n test-prd

default-pipelines's People

Contributors

mgohashi avatar mohashi-rh avatar

Watchers

 avatar

Forkers

marcos2soares

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.