Giter VIP home page Giter VIP logo

cicd's Introduction

r 是Ci/cd工具

##查看使用帮助
./r 

使用方法

  1. 配置env.temp参数

默认使用自定义的阿里云镜像加快下载以及解决国外资源无法访问的问题

  1. 运行
#自定义docker-compose.yml文件,让sonarqube使用H2,还是使用mysql或者pg
#生产环境建议不要使用H2仓库,参数空则默认使用H2
./r i [pg|mysql]或者空
## 启动docker-compose
docker-compose up -d 

发布一个精简的版本,不包含数据,在dist目录下

./r dist

sonarqube docker环境变量

https://docs.sonarqube.org/latest/setup/environment-variables/

注意使用docker-desktop或者docker for windows,设置RESOURCES内存 提供6G以上内存

不然sonarqube因为内存不足,会导致出现连接h2 socket timetout

编排文件说明

  1. docker-compose.mysql.temp.yml sonarqube lts 支持mysql
  2. docker-compose.pg.temp.yml sonarqube 8+不支持mysql,只能用postgres
  3. docker-compose.temp.yml H2数据库

ENV 文件配置

env里可以参考注释配置 我编译好的定制版本的放在阿里云的镜像,见env文件说明 registry.cn-hangzhou.aliyuncs.com

子文件夹下的Dockerfile用来编译成自定义镜像,以免jenkins/sonarqube使用国外镜像,下载速度慢

cicd's People

Stargazers

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