ised-isde-canada / cbmdsp-cp-sp-overall-architecture

1 stars 1 forks source link

Task: As a non-ISED developer I need to build/deploy to OCP without the use of jenkins or the registry #32

Open obriensystems opened 3 years ago

obriensystems commented 3 years ago

The developer lifecycle for non-ISDE developers like AWS PS is different github/ocp user needs registry/jenkins as well for ext users verify OCP deploy from dockerfile works instead of using from registry

There is a local script that can automate at least the build/run dev cycle for the container in the repo. Note that the root Dockerfile is used for OCP, the DockerFile (camelcase) is used for both OCP or local docker desktop/KIND https://github.com/ised-isde-canada/cbmdsp-cp-sp-overall-architecture/blob/master/src/docker/build.sh

obriensystems commented 3 years ago

pipeline { agent any tools { maven 'mvn' }

/*agent {
    label 'maven'
}*/

options {
    disableConcurrentBuilds() 
}

stages {
    stage('Build') {
        steps {
            echo 'Building..'
            sh 'mvn clean install -U -DskipTests=true'
        }
    }
    stage('Test') {
        steps {
            echo 'Testing..'
        }
    }
    stage('Deploy') {
        steps {
            echo 'Deploying....'
        }
    }
}

}