forked from apache/incubator-hugegraph-computer
-
Notifications
You must be signed in to change notification settings - Fork 0
doc(docker): add docker usage into README files; add a docker-compose file #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Ethereal-O
wants to merge
7
commits into
hugegraph:master
Choose a base branch
from
Ethereal-O:readme_update
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
879a31b
doc(docker): add docker usage into README files; add a docker-compose…
Ethereal-O 5c264eb
Update vermeer/docker-compose.yaml
Ethereal-O 217adc3
Update vermeer/README.md
Ethereal-O c31bec7
Update vermeer/README.zh-CN.md
Ethereal-O f41ca5c
Update docker-compose.yaml
Ethereal-O f4c96d9
Update README.zh-CN.md
Ethereal-O a3839cb
Update README.md
Ethereal-O File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -3,6 +3,26 @@ | |
| ## 简介 | ||
| Vermeer是一个基于内存的高性能分布式图计算平台,支持15+图算法。支持自定义算法扩展,支持自定义数据源接入。 | ||
|
|
||
| ## 基于 Docker 运行 | ||
|
|
||
| 拉取镜像 | ||
| ``` | ||
| docker pull hugegraph/vermeer:latest | ||
| ``` | ||
|
|
||
| 创建好本地配置文件,例如`~/master.ini`与`~/worker.ini` | ||
|
|
||
| 基于docker运行,其中`--env`指定的是文件名称。 | ||
| ``` | ||
| master: docker run -v ${HOME}/:/go/bin/config hugegraph/vermeer --env=master | ||
| worker: docker run -v ${HOME}/:/go/bin/config hugegraph/vermeer --env=worker | ||
|
Comment on lines
+17
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chain挂载路径过宽且示例与后文
下面运行脚本验证 🏁 Script executed: #!/usr/bin/env bash
# 查找挂载 HOME 目录的命令
rg -n -- '-v \$\{HOME\}/' vermeer/README.zh-CN.md
# 查找所有 --env 标志及其参数
rg -n -- '--env' vermeer/README.zh-CN.mdLength of output: 515 请修正 README 示例的挂载路径和 --env 参数一致性
🧰 Tools🪛 markdownlint-cli2 (0.17.2)17-17: Fenced code blocks should have a language specified (MD040, fenced-code-language) 🤖 Prompt for AI Agents |
||
| ``` | ||
|
|
||
| 我们也提供了`docker-compose`文件,当创建好`~/master.ini`与`~/worker.ini`,将`worker.ini`中的`master_peer`修改为`172.20.0.10:6689`后,即可通过以下命令运行: | ||
| ``` | ||
| docker-compose up -d | ||
| ``` | ||
|
|
||
| ## 运行 | ||
|
|
||
| ``` | ||
|
|
||
This file contains hidden or 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,29 @@ | ||
| version: '3.8' | ||
|
|
||
| services: | ||
| vermeer-master: | ||
| image: hugegraph/vermeer | ||
| container_name: vermeer-master | ||
| volumes: | ||
| - ${HOME}/:/go/bin/config # Change here to your actual config path | ||
| command: --env=master | ||
| networks: | ||
| vermeer_network: | ||
| ipv4_address: 172.20.0.10 # Assign a static IP for the master | ||
|
|
||
| vermeer-worker: | ||
| image: hugegraph/vermeer | ||
| container_name: vermeer-worker | ||
| volumes: | ||
| - ~/:/go/bin/config # Change here to your actual config path | ||
| command: --env=worker | ||
| networks: | ||
| vermeer_network: | ||
| ipv4_address: 172.20.0.11 # Assign a static IP for the worker | ||
|
|
||
| networks: | ||
| vermeer_network: | ||
| driver: bridge | ||
| ipam: | ||
| config: | ||
| - subnet: 172.20.0.0/24 # Define the subnet for your network |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Volume mount scope &
envnaming inconsistency${HOME}directory may leak unrelated files; limit the mount to a dedicated config folder, e.g.${HOME}/vermeer_conf:/go/bin/config.--env=worker, whereas later in the README it switches to--env=worker01. Align the examples to avoid confusion.请运行以下脚本以确认
vermeer/README.md中的docker run示例及--env参数用法是否一致:🏁 Script executed:
Length of output: 468
请限制 Docker 挂载范围并统一
--env参数为了避免泄露不相关文件,并消除示例中的命名混淆,请在
vermeer/README.md中做如下调整:• 将第 18–19 行的挂载路径
改为只挂载专用配置目录
${HOME}/vermeer_conf。• 将第 32 行的
--env=worker01改为与前面一致的--env=worker,或反之全局统一为worker01:📝 Committable suggestion
🤖 Prompt for AI Agents