-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature-support-file' into v3.10.x
- Loading branch information
Showing
66 changed files
with
5,542 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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和二进制同级的目录下 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.