Skip to content

Commit

Permalink
fix: fix elk docker deploy error (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
BanTanger authored Oct 6, 2023
1 parent 10e2b24 commit e87f42f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
# AchoBeta-infra
achobeta team infrastructure service

<a href="./README_CN.md"><b> 简体中文 </b></a>

# before develop

1. execute command in the root directory

```shell
git config core.hooksPath .githooks
chmod -R -x .githooks
```
The purpose of the above command is to trigger a hook when submitting a commit to confirm whether the commit message is correct.
+ The purpose of the above command is to trigger a hook when submitting a commit to confirm whether the commit message is correct.

If you want to deploy the ELK service component via docker, please see the following content
```shell
chmod -R 777 /docker/elk/elasticsearch/data /docker/elk/elasticsearch/logs
```
+ For data/logs directory, please execute the above command to give reading and writing permissions, otherwise ES will not be written into the data

2. **Read the development specifications below**

# branch naming convention
Expand Down
12 changes: 10 additions & 2 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,17 @@ git config core.hooksPath .githooks
chmod -R -x .githooks
```

上述命令的目的是在 git 提交时触发钩子以确认提交消息格式是否正确。
+ 上述命令的目的是在 git 提交时触发钩子以确认提交消息格式是否正确。

2.**请阅读下面的开发规范**
如果您想要通过 docker 部署 elk 服务组件,请看下面内容

```shell
chmod -R 777 /docker/elk/elasticsearch/data /docker/elk/elasticsearch/logs
```

+ 数据/日志目录需要执行上述命令, 否则 es 无法读取数据文件

2. **请阅读下面的开发规范**

# 分支命名约定
必须确保:
Expand Down
1 change: 0 additions & 1 deletion docker/elk/elasticsearch/data/README.md

This file was deleted.

1 change: 0 additions & 1 deletion docker/elk/elasticsearch/logs/README.md

This file was deleted.

0 comments on commit e87f42f

Please sign in to comment.