本地窗口上的gitlab-runner错误

时间:2018-03-08 20:25:49

标签: windows docker gitlab-ci-runner hugo blogdown

我想在本地生成my work in progress hugo website。它适用于gitlab CI。

我安装了docker和gitlab runner服务。

然后使用指南here我认为我应该做gitlab-runner exec docker pages。 但结果是:

[0;33mWARNING: Since GitLab Runner 10.0 this command is marked as DEPRECATED and will be removed in one of upcoming releases[0;m
[0KRunning with gitlab-runner 10.5.0 (80b03db9)
[0;m[0KUsing Docker executor with image rocker/tidyverse:latest ...
[0;m[0KPulling docker image rocker/tidyverse:latest ...
[0;m[0KUsing docker image sha256:f9a62417cb9b800a07695f86027801d8dfa34552c621738a80f5fed649c1bc80 for rocker/tidyverse:latest ...
[0;m[31;1mERROR: Job failed (system failure): Error response from daemon: invalid volume specification: '/host_mnt/c/builds/project-0/Users/jan/Desktop/gits/stanstrup-web:C:\Users\jan\Desktop\gits\stanstrup-web:ro'
[0;m[31;1mFATAL: Error response from daemon: invalid volume specification: '/host_mnt/c/builds/project-0/Users/jan/Desktop/gits/stanstrup-web:C:\Users\jan\Desktop\gits\stanstrup-web:ro'[0;m

我也尝试过注册,因为其他指南显示但我最终遇到了同样的问题。

其他人有一些问题:

我应该在.gitlab-ci.yml中设置一些内容吗?应该在那里设定数量?在哪种情况下/在哪里?



.gitlab-ci.yml说:

image: rocker/tidyverse:latest

before_script:
  - apt-get update && apt-get -y install default-jdk pandoc r-base r-cran-rjava curl netcdf-bin libnetcdf-dev libxml2-dev libssl-dev
  - R CMD javareconf
  - Rscript .gitlab-ci.R

pages:
  script:
    - R -e "blogdown::build_site()"
  artifacts:
    paths:
      - public
  only:
    - master

1 个答案:

答案 0 :(得分:1)

看起来你在docker中找到了许多工具必须解决的窗口中的冒号分隔符错误,gitlab has noticed it

直到修复程序出来,最简单的解决方法是让你尝试在windows框上的linux vm中执行此操作。 get prebuilt gitlab vm images from bitnami here.

否则您可以结帐并运行gitlab-runner source branch with the fix,但它会显示一些冲突并可能有其他错误。