mirror of
https://gitee.com/kennylee/docker.git
synced 2024-12-02 03:48:15 +08:00
去掉已废弃的CI目录
This commit is contained in:
parent
1fbe8fe2de
commit
a3f3b1a307
@ -1 +0,0 @@
|
||||
快速搭建SonarQube+Jenkins的CI环境。
|
@ -1,47 +0,0 @@
|
||||
jenkins:
|
||||
build: jenkins # 根据实际情况修改
|
||||
ports:
|
||||
- 8051:8080
|
||||
- 45000:50000
|
||||
container_name: jenkins
|
||||
restart: always
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- JAVA_OPTS=-Xms512m -Xmx768m -XX:MaxNewSize=256m -XX:MaxPermSize=128m
|
||||
- JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
|
||||
- M2_HOME=/var/jenkins_home/libs/maven/
|
||||
volumes:
|
||||
- /home/subversion/:/home/subversion/
|
||||
- /home/jenkins_home/:/var/jenkins_home/ # 注意权限问题,建议777,不然造成无法启动问题。
|
||||
- /home/git/:/home/git/
|
||||
links:
|
||||
- sonar_web:sonar_web
|
||||
- sonar_db:sonar_db
|
||||
extra_hosts:
|
||||
- "timekey.8866.org:192.168.1.99"
|
||||
sonar_web:
|
||||
image: sonarqube:5.1.2
|
||||
container_name: sonar-web
|
||||
ports:
|
||||
- "9000:9000"
|
||||
links:
|
||||
- sonar_db:postgres
|
||||
restart: always
|
||||
volumes:
|
||||
- /home/sonar/web/data/:/opt/sonarqube/data/
|
||||
- /home/sonar/web/extensions/:/opt/sonarqube/extensions/
|
||||
environment:
|
||||
- SONARQUBE_JDBC_URL=jdbc:postgresql://postgres:5432/sonar
|
||||
- TZ=Asia/Shanghai
|
||||
sonar_db:
|
||||
image: postgres
|
||||
container_name: sonar-db
|
||||
restart: always
|
||||
ports:
|
||||
- 9432:5432
|
||||
volumes:
|
||||
- /home/sonar/db/data/:/var/lib/postgresql/data/ #注意本地目录权限只能700
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- POSTGRES_USER=sonar
|
||||
- POSTGRES_PASSWORD=sonar
|
@ -1,33 +0,0 @@
|
||||
# Jenkins
|
||||
#
|
||||
# VERSION 0.0.1
|
||||
# Authoer: kennylee26
|
||||
# NAME: kennylee26/jenkins
|
||||
# Command format: Instruction [arguments command] ..
|
||||
|
||||
# 第一行必须指定基于的基础镜像
|
||||
FROM jenkinsci/jenkins:2.31
|
||||
|
||||
# 维护者信息
|
||||
MAINTAINER kennylee26 <kennylee26@gmail.com>
|
||||
|
||||
USER root
|
||||
RUN curl http://mirrors.163.com/.help/sources.list.jessie>/etc/apt/sources.list
|
||||
RUN apt-get -y update
|
||||
# recommend
|
||||
RUN apt-get install -y \
|
||||
curl git unzip vim wget
|
||||
# this image required
|
||||
RUN apt-get install -y ant
|
||||
# clean
|
||||
RUN rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# for main web interface:
|
||||
EXPOSE 8080
|
||||
# will be used by attached slave agents:
|
||||
EXPOSE 50000
|
||||
|
||||
#COPY plugins.txt /usr/share/jenkins/plugins.txt
|
||||
#RUN /usr/local/bin/plugins.sh /usr/share/jenkins/plugins.txt
|
||||
|
||||
ENTRYPOINT ["/bin/tini", "--", "/usr/local/bin/jenkins.sh"]
|
@ -1,13 +0,0 @@
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- 8051:8080
|
||||
- 45000:50000
|
||||
container_name: jenkins
|
||||
# restart: always
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- JAVA_OPTS=-Dhudson.footerURL=http://www.timekey.com.cn/
|
||||
volumes:
|
||||
- /home/subversion/:/home/subversion/
|
||||
- /home/git/:/home/git/
|
@ -1,2 +0,0 @@
|
||||
greenballs:1.14
|
||||
sonar:2.2.1
|
Loading…
Reference in New Issue
Block a user