【发布时间】:2019-07-21 06:47:33
【问题描述】:
我正在尝试使用chocolatey 在 Windows 上部署 gitlab-runner。
我的意图是在E:\gitlab-runner目录下安装gitlab-runner,自动注册runner并作为服务启动
我执行了以下行:
choco install -y gitlab-runner /InstallDir E:\gitlab-runner /Service --source https://mynexusproxy/repository/chocolatey-org/
我得到以下输出:
Chocolatey v0.10.11
Installing the following packages:
gitlab-runner;/InstallDir;E:\gitlab-runner;/Service
By installing you accept licenses for the packages.
Progress: Downloading gitlab-runner 11.8.0... 100%
gitlab-runner v11.8.0
gitlab-runner package files install completed. Performing other installation steps.
Using previous gitlab-runner install path: e:\gitlab-runner
Installing x64 bit version
Added C:\ProgramData\chocolatey\bin\gitlab-runner.exe shim pointed to 'e:\gitlab-runner\gitlab-runner.exe'.
The install of gitlab-runner was successful.
Software install location not explicitly set, could be in package or
default install location if installer.
Second path fragment must not be a drive or UNC name.
Parameter name: path2
在E:\gitlab-runner中正确下载了gitlab-runner.exe,但是注册没有完成,也没有创建服务。一个register_example.ps1也在E:\gitlab-runner下载。
我的安装过程有什么问题?我需要用自定义值修改 register_example.ps1 吗?
【问题讨论】:
-
您能显示您尝试使用的确切安装命令吗?
-
抱歉,我在帖子中忘记了那部分。我编辑了它。
标签: gitlab-ci gitlab-ci-runner chocolatey