Skip to content

Commit

Permalink
Merge branch 'feature-support-file' into v3.10.x
Browse files Browse the repository at this point in the history
  • Loading branch information
breezelxp committed May 17, 2022
2 parents 05ea6f9 + b32c336 commit ca7fed3
Show file tree
Hide file tree
Showing 66 changed files with 5,542 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/support-file/dockerfile/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# BK-CMDB

蓝鲸配置平台(蓝鲸CMDB)是一个面向资产及应用的企业级配置管理平台。

本文档内容为如何根据提供的dockerfile制作cmdb镜像。

### 操作步骤
#### 对于cmdb各个服务。这里以adminserver为例:
(1)在adminserver目录里创建cmdb_adminserver目录
```
mkdir dockerfile/adminserver/cmdb_adminserver
```
(2)将adminserver的二进制拷贝到上述的cmdb_adminserver目录中

(3)在上述cmdb_adminserver目录创建conf目录,将errors,language
```
mkdir dockerfile/adminserver/cmdb_adminserver/conf
cp -r cmdb/{errors,language} dockerfile/adminserver/cmdb_adminserver/conf
```

(4)执行docker build构建镜像

注:其中webserver比较特殊,还需要将web目录拷贝到cmdb_webserver下,即与conf和二进制同级的目录下

9 changes: 9 additions & 0 deletions docs/support-file/dockerfile/adminserver/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ccr.ccs.tencentyun.com/bk.io/centos7-cmdb:base
ENV container docker
COPY cmdb_adminserver /data/cmdb/cmdb_adminserver
RUN mkdir /data/cmdb/cmdb_adminserver/logs
RUN chmod +x /data/cmdb/cmdb_adminserver/cmdb_adminserver
#time zone setting
ENV TimeZone=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone

9 changes: 9 additions & 0 deletions docs/support-file/dockerfile/apiserver/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ccr.ccs.tencentyun.com/bk.io/centos7-cmdb:base
ENV container docker
COPY cmdb_apiserver /data/cmdb/cmdb_apiserver
RUN mkdir /data/cmdb/cmdb_apiserver/logs
RUN chmod +x /data/cmdb/cmdb_apiserver/cmdb_apiserver
#time zone setting
ENV TimeZone=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone

8 changes: 8 additions & 0 deletions docs/support-file/dockerfile/authserver/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM ccr.ccs.tencentyun.com/bk.io/centos7-cmdb:base
ENV container docker
COPY cmdb_authserver /data/cmdb/cmdb_authserver
RUN mkdir /data/cmdb/cmdb_authserver/logs
RUN chmod +x /data/cmdb/cmdb_authserver/cmdb_authserver
#time zone setting
ENV TimeZone=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone
8 changes: 8 additions & 0 deletions docs/support-file/dockerfile/cacheservice/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM ccr.ccs.tencentyun.com/bk.io/centos7-cmdb:base
ENV container docker
COPY cmdb_cacheservice /data/cmdb/cmdb_cacheservice
RUN mkdir /data/cmdb/cmdb_cacheservice/logs
RUN chmod +x /data/cmdb/cmdb_cacheservice/cmdb_cacheservice
#time zone setting
ENV TimeZone=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone
8 changes: 8 additions & 0 deletions docs/support-file/dockerfile/cloudserver/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM ccr.ccs.tencentyun.com/bk.io/centos7-cmdb:base
ENV container docker
COPY cmdb_cloudserver /data/cmdb/cmdb_cloudserver
RUN mkdir /data/cmdb/cmdb_cloudserver/logs
RUN chmod +x /data/cmdb/cmdb_cloudserver/cmdb_cloudserver
#time zone setting
ENV TimeZone=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone
9 changes: 9 additions & 0 deletions docs/support-file/dockerfile/coreservice/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ccr.ccs.tencentyun.com/bk.io/centos7-cmdb:base
ENV container docker
COPY cmdb_coreservice /data/cmdb/cmdb_coreservice
RUN mkdir /data/cmdb/cmdb_coreservice/logs
RUN chmod +x /data/cmdb/cmdb_coreservice/cmdb_coreservice
#time zone setting
ENV TimeZone=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone

9 changes: 9 additions & 0 deletions docs/support-file/dockerfile/datacollection/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ccr.ccs.tencentyun.com/bk.io/centos7-cmdb:base
ENV container docker
COPY cmdb_datacollection /data/cmdb/cmdb_datacollection
RUN mkdir /data/cmdb/cmdb_datacollection/logs
RUN chmod +x /data/cmdb/cmdb_datacollection/cmdb_datacollection
#time zone setting
ENV TimeZone=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone

9 changes: 9 additions & 0 deletions docs/support-file/dockerfile/eventserver/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ccr.ccs.tencentyun.com/bk.io/centos7-cmdb:base
ENV container docker
COPY cmdb_eventserver /data/cmdb/cmdb_eventserver
RUN mkdir /data/cmdb/cmdb_eventserver/logs
RUN chmod +x /data/cmdb/cmdb_eventserver/cmdb_eventserver
#time zone setting
ENV TimeZone=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone

9 changes: 9 additions & 0 deletions docs/support-file/dockerfile/hostserver/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ccr.ccs.tencentyun.com/bk.io/centos7-cmdb:base
ENV container docker
COPY cmdb_hostserver /data/cmdb/cmdb_hostserver
RUN mkdir /data/cmdb/cmdb_hostserver/logs
RUN chmod +x /data/cmdb/cmdb_hostserver/cmdb_hostserver
#time zone setting
ENV TimeZone=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone

2 changes: 2 additions & 0 deletions docs/support-file/dockerfile/migrate/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM ccr.ccs.tencentyun.com/bk.io/centos7-cmdb:base
RUN yum -y install jq
4 changes: 4 additions & 0 deletions docs/support-file/dockerfile/monstache/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM ccr.ccs.tencentyun.com/bk.io/centos7-cmdb:base
ENV container docker
COPY cmdb_monstache /data/cmdb/monstache
RUN chmod +x /data/cmdb/monstache/monstache
9 changes: 9 additions & 0 deletions docs/support-file/dockerfile/operationserver/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ccr.ccs.tencentyun.com/bk.io/centos7-cmdb:base
ENV container docker
COPY cmdb_operationserver /data/cmdb/cmdb_operationserver
RUN mkdir /data/cmdb/cmdb_operationserver/logs
RUN chmod +x /data/cmdb/cmdb_operationserver/cmdb_operationserver
#time zone setting
ENV TimeZone=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone

9 changes: 9 additions & 0 deletions docs/support-file/dockerfile/procserver/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ccr.ccs.tencentyun.com/bk.io/centos7-cmdb:base
ENV container docker
COPY cmdb_procserver /data/cmdb/cmdb_procserver
RUN mkdir /data/cmdb/cmdb_procserver/logs
RUN chmod +x /data/cmdb/cmdb_procserver/cmdb_procserver
#time zone setting
ENV TimeZone=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone

9 changes: 9 additions & 0 deletions docs/support-file/dockerfile/synchronizeserver/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ccr.ccs.tencentyun.com/bk.io/centos7-cmdb:base
ENV container docker
COPY cmdb_synchronizeserver /data/cmdb/cmdb_synchronizeserver
RUN mkdir /data/cmdb/cmdb_synchronizeserver/logs
RUN chmod +x /data/cmdb/cmdb_synchronizeserver/cmdb_synchronizeserver
#time zone setting
ENV TimeZone=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone

9 changes: 9 additions & 0 deletions docs/support-file/dockerfile/taskserver/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ccr.ccs.tencentyun.com/bk.io/centos7-cmdb:base
ENV container docker
COPY cmdb_taskserver /data/cmdb/cmdb_taskserver
RUN mkdir /data/cmdb/cmdb_taskserver/logs
RUN chmod +x /data/cmdb/cmdb_taskserver/cmdb_taskserver
#time zone setting
ENV TimeZone=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone

9 changes: 9 additions & 0 deletions docs/support-file/dockerfile/toposerver/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ccr.ccs.tencentyun.com/bk.io/centos7-cmdb:base
ENV container docker
COPY cmdb_toposerver /data/cmdb/cmdb_toposerver
RUN mkdir /data/cmdb/cmdb_toposerver/logs
RUN chmod +x /data/cmdb/cmdb_toposerver/cmdb_toposerver
#time zone setting
ENV TimeZone=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone

9 changes: 9 additions & 0 deletions docs/support-file/dockerfile/webserver/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ccr.ccs.tencentyun.com/bk.io/centos7-cmdb:base
ENV container docker
COPY cmdb_webserver /data/cmdb/cmdb_webserver
RUN mkdir /data/cmdb/cmdb_webserver/logs
RUN chmod +x /data/cmdb/cmdb_webserver/cmdb_webserver
#time zone setting
ENV TimeZone=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone

23 changes: 23 additions & 0 deletions docs/support-file/helm/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
18 changes: 18 additions & 0 deletions docs/support-file/helm/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
dependencies:
- name: common
repository: https://charts.bitnami.com/bitnami
version: 1.8.0
- name: redis
repository: https://charts.bitnami.com/bitnami
version: 14.8.8
- name: mongodb
repository: https://charts.bitnami.com/bitnami
version: 10.23.10
- name: elasticsearch
repository: https://charts.bitnami.com/bitnami
version: 17.5.2
- name: zookeeper
repository: https://charts.bitnami.com/bitnami
version: 7.0.0
digest: sha256:e302c9a4cb1e850846f28663cb7c177b9d74216694e3f9dfce1f3cf6f2325249
generated: "2022-02-17T15:43:13.93304063+08:00"
26 changes: 26 additions & 0 deletions docs/support-file/helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: v2
appVersion: 3.10.16
description: BlueKing Configuration Management DataBase (bk-cmdb) is an enterprise level configuration management serivce database.
name: bk-cmdb
type: application
version: 3.11.11
dependencies:
- name: common
repository: https://charts.bitnami.com/bitnami
version: 1.8.0
- condition: redis.enabled
name: redis
repository: https://charts.bitnami.com/bitnami
version: 14.8.8
- condition: mongodb.enabled
name: mongodb
repository: https://charts.bitnami.com/bitnami
version: 10.23.10
- condition: elasticsearch.enabled
name: elasticsearch
repository: https://charts.bitnami.com/bitnami
version: 17.5.2
- condition: zookeeper.enabled
name: zookeeper
repository: https://charts.bitnami.com/bitnami
version: 7.0.0
Loading

0 comments on commit ca7fed3

Please sign in to comment.