dilenzhu / wildfirechat-proto-docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wildfirechat proto docker

野火开源IM proto docker编译环境

docker build env for wildfirechat IM proto

Installation

docker pull leondevlifelog/proto:latest

Usage

example for jenkins pipeline

pipeline {
    agent {
        docker { 
            image 'leondevlifelog/proto:latest' 
            args '-v $HOME/.m2:/root/.m2'
        }
        
    }
    stages {
        stage('PullCode') {
            steps {
                //                           ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓      change to your proto code repo 
                git(branch:"firechat",url : "https://github.com/wildfirechat/proto.git")
            }
        }
        stage('BuildSoFile') {
            steps {
                dir("mars/libraries") {
                    sh "python2.7 build_android.py"
                }
                dir("mars/libraries/mars_android_sdk"){
                    sh "./gradlew build"
                }
            }
        }
        stage('Archive'){
            steps {
                archiveArtifacts artifacts: 'mars/libraries/mars_android_sdk/build/outputs/aar/*.aar', fingerprint: true
            }
        }
    }
}

example for bash

$docker run -it --name proto -v /path/to/proto:/proto leondevlifelog/proto:latest
root@xxxxxxxx $cd /proto/mars/libraries && python2.7 build_android.py && cd mars_android_sdk && ./gradlew build

output path

mars/libraries/mars_android_sdk/build/outputs/aar/*.aar

License

This project is licensed under the GPL-2.0 License - see the LICENSE.md file for details

About

License:GNU General Public License v2.0


Languages

Language:Dockerfile 100.0%