【问题标题】:Grunt required github token during docker build在 docker build 期间 Grunt 需要 github 令牌
【发布时间】:2015-08-12 15:54:31
【问题描述】:

Grunt 需要一个 github 身份验证令牌,而它是在 docker 构建映像期间执行的。如何为 grunt 提供所需的令牌?交互式传递不起作用(正如我已经要求的那样)。

咕噜的信息是:

Running "volo:add:-nostamp:twbs/bootstrap/3.3.2:packages/bootstrap/" (volo) task
GitHub auth required for api.github.com/repos/twbs/bootstrap/tags: {"message":"API rate limit exceeded for XXX.XXX.XXX.XXX. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}
GitHub access token required to complete action. In a web browser, go to:

https://github.com/settings/tokens

and generate a new "Personal access token" for volo. Only "repo" and "public_repo" permissions are needed. Paste the generated token below.
GitHub Personal Access Token: 

【问题讨论】:

    标签: github gruntjs docker github-api volojs


    【解决方案1】:

    您可以将存储库的 URL 更改为:

    https://<token>:x-oauth-basic@github.com/MyApp/myapp.git
    

    更多信息请访问:https://devops.profitbricks.com/tutorials/configure-a-docker-container-to-automatically-pull-from-github-using-oauth/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-02-17
      • 2015-05-13
      • 1970-01-01
      • 2021-07-28
      • 1970-01-01
      • 2019-05-17
      • 2016-01-13
      • 1970-01-01
      相关资源
      最近更新 更多