
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Docker container for http://github.com/dstl/baleen.
This projects contains two approaches to using Baleen with Docker.
You can use this directly as a docker images pulled from Docker Hub (https://hub.docker.com/r/tenode/baleen/) or look at the GitHub repo for scripts / config / examples (https://github.com/tenode/baleen-docker). These Docker implementations are examples and should be further configured and secured for production use.
In both cases you will wish to provide your own Baleen configuration, though a comprehensive example file is included to allow you to quickly get going.
Baleen (JARs) will be downloaded from the GitHub release pages.
The Docker image is published to http://hub.docker.com/tenode/baleen.
You can run directly as usual with:
docker run -p 6413:6413 -u $(id -u) -v $(pwd):/baleen tenode/baleen [optional yaml]
Note that we map the user id and the present working directory. With Baleen you are likely to want to setup a baleen yaml configuration file to set up your pipelines. However this is optional (instead you can use the REST inteface on 6413).
You should https://docs.docker.com/installation/.
Then you can run the build image script:
$ ./build-image.sh
This will download and build a Docker image called dstl/baleen. The Dockerfile is in the baleen-docker directory.
To simplify running, use the baleen script from a directory containing a Baleen configuration. This will run Baleen as the current user. Press Ctrl+C to quit Baleen.
The /baleen-docker/example directory has an example configuration:
$ cd baleen-docker/example $ ../../run-standalone.sh baleen.yml
The Baleen port 6413 will be exposed to the host. Visit http://localhost:6413.
Since referencing the run-standalone script is pain you either add it to your path (or copy somwhere within your path):
$ sudo cp run-standalone.sh /usr/local/bin/baleen $ sudo chmod +x /usr/local/bin/baleen
Now you can simply run Baleen, in the directory with the configuration as:
$ cd baleen-docker/example $ baleen baleen.yml
You should https://docs.docker.com/installation/ and https://docs.docker.com/compose/install/.
To run as a service (in the background):
$ docker-compose up -d
Or, to run and wait:
$ docker-compose up
Both of these will download and build Elasticsearch and Mongo images, and configure Baleen to use them. The Elasticsearch and Mongo services will be available on the host machine on their standard ports (9200 and 27017 respectively).
Warning! To allow you to easily access Elasticsearch from an online tools of your choice, such as ElasticHQ, the docker-compose image has CORS enabled (the default is disabled). You can disable this by commenting out the command: "-Des.http.cors.enabled=true" or change the allowed origins (-Dhttp.cors.allow-origin) to just the tools are using. See https://github.com/elastic/elasticsearch/issues/7151 for more details.
You can configure Baleen by editting the files in the /baleen directory. The sample configuration provided will read from the baleen/data directory, process the data and download output to the Elasticseach and Mongo. For example, after running Baleen you can search for documents with urls using Elasticsearch:
$ curl localhost:9200/baleen_index/_search?q=entities.type=Url\&pretty
Or just use search the text content of the documents:
$ curl localhost:9200/baleen_index/_search?q=content=Baleen&pretty
At the time of writing, Docker does not allow us to be notified when the databases are ready before starting Baleen. You may see errors from Baleen (run docker-compose logs baleen) because it has started before Elasticsearch is ready to receive connections. If this happens, you should simply restart Baleen:
$ docker-compose restart baleen
To stop all services and then delete the containers use:
$ docker-compose stop $ docker-compose rm
The data from Elasticsearch and Mongo is stored in the data/elasticsearch and data/mongo directories, so it is not lost when docker-compose is stopped (docker-compose stop). You can delete the contents with the ./clean-data.sh script (which may need to be run as root).
You should tailor the docker-compose.yml file to meet your requirements (ports, Elasticsearch cluster name, etc).
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务