Hydra/zh-cn: Difference between revisions

Moraxyc (talk | contribs)
Created page with "=== 网页配置 ==="
Moraxyc (talk | contribs)
Created page with "此选项会导致创建文件 /etc/nix/machines。若 Hydra 服务配置仍设置为 buildMachinesFiles = [],则该文件将被忽略,因此请移除此选项,或将 <code>/etc/nix/machines</code> 添加到该配置中。"
Line 30: Line 30:


<span id="Web_Configuration"></span>
<span id="Web_Configuration"></span>
=== 网页配置 ===
=== 网站配置 ===


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
Line 42: Line 42:
</syntaxHighlight>
</syntaxHighlight>


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Virtual_machine"></span>
=== Virtual machine ===
=== 虚拟机 ===
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
如果未显式进行其他配置,Hydra 将默认使用 localhost 作为构建机。默认情况下,用于在虚拟机中执行构建的系统特性(如 “kvm” 或 “nixos-test”)不会被启用。此类作业将会无限期地处于排队状态。可以通过如下方式启用这些选项:
If not configured explicitly to do otherwise, Hydra will specify localhost as the default build machine. By default, system features enabling builds to be performed in virtual machines like "kvm" or "nixos-test" are not enabled. Such jobs will be queued indefinitely. Those options can be activated as follows:
</div>


<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>
Line 63: Line 60:
</syntaxHighlight>
</syntaxHighlight>


<div lang="en" dir="ltr" class="mw-content-ltr">
此选项会导致创建文件 /etc/nix/machines。若 Hydra 服务配置仍设置为 buildMachinesFiles = [],则该文件将被忽略,因此请移除此选项,或将 <code>/etc/nix/machines</code> 添加到该配置中。
This option leads to the file /etc/nix/machines being created. If the hydra service config is still set to buildMachinesFiles = [], then it will be ignored, so remove this option again or add <code>/etc/nix/machines</code> to it.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">