
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
The server serves the https://github.com/CoderDojoPotsdam/intro/tree/offline-build. If it runs locally, this allows the https://coderdojopotsdam.github.io/intro/ page to serve offline content.
If you want to install the server, you will need to have Python 3 and the corresponding pip installer. Under Ubuntu, do the following:
sudo apt-get install python3 pip-python3
To install the offline server, do this:
pip3 install https://github.com/CoderDojoPotsdam/intro/archive/server.zip
Windows:
py -3 -m pip install https://github.com/CoderDojoPotsdam/intro/archive/server.zip
Note: You might want to use the --user switch if you do not have
administrator rights. You can use the --upgrade argument of pip to update you installation.
Also, either download or clone the offline version of the website.
You will need to replaceshellgit clone --depth=1 --branch offline-build \ https://github.com/CoderDojoPotsdam/intro.git offline-build
path/to/offline-build with the
path to the cloned repository in the following.In order to run the server, you can use this command after installation and when you are in the directory of this file.
export OFFLINE_BUILD_DIRECTORY=path/to/offline-build python3 -m intro_offline_server
Windows:
set OFFLINE_BUILD_DIRECTORY=path/to/offline-build py -3 -m intro_offline_server
This yields the following output:
* Running on http://[::]:25444/ (Press CTRL+C to quit) * Restarting with stat * Debugger is active! * Debugger PIN: 278-881-192
These are all configuration variables:
OFFLINE_BUILD_DIRECTORY - If given, this is the directory the server serves the offline content from.
Only if this variable is set, the server sends announcements to the servers in the servers file.
These announcements include all HTTP addresses the server could possibly reached in the local network.PORT defaults to 25444 - This is the port at which the HTTP server listens for connections with both IPv4 and IPv6.SECONDS_TO_CONNECT defaults to 20 - These are the seconds to establish a connection to
the servers in the servers file for announcement.SECONDS_TO_UNTIL_OUTDATED defaults to 10 Minutes - This is the time an announcement is valid.
This is only interesting to servers which receive announcements.SECONDS_TO_REPORT defaults to 3 Minutes, 20 Seconds - This is the time interval in which
a server announces its exitence to the servers in the servers file.You can set these variables before the server is started in the same command line, like this under Ubuntu:
export PORT=25444
Windows:
set PORT=25444
If you would like to run an updated version of the server,
have a look at the https://github.com/CoderDojoPotsdam/CoderDojoOS/tree/master/specials/software/intro:
You can run this script as root to run an up-to-date version of the server with the updated offline-build branch.
If you like to develop on this server, you can install virtualenv
pip3 install --user virtualenv
Setup your python environment:
virtualenv -p python3 ENV source ENV/bin/activate pip install -r requirements.txt
If you add a new package to requirements.txt, also run this command:
pip install pip-tools pip-compile requirements.txt
For development of the offline features, you can use the following setup:
intro - checkout with the server branchintro/intro checkout with the master branch running
jekyll serve --trace to check the ability of localhost to use the
offline links at http://localhost:4000 and
jekyll serve --trace --port 4001 --destination _site-offlineintro/_site-offline/offline checkout with the offline branchYou can also run and start the docker container:
docker run --rm -p 25444:25444 coderdojopotsdam/intro
You may want to add this server to the servers file if it has an external reachability.
To build the container, run
docker build --tag coderdojopotsdam/intro .
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务