【问题标题】:why Red Hat OpenShift dosen't clone the project?为什么 Red Hat OpenShift 不克隆该项目?
【发布时间】:2019-09-09 13:07:31
【问题描述】:

我正在测试名为 adobot-io-master 的项目。我没有使用 heroku,而是为这个项目选择了 Red Hat OpenShift,但我收到了这个错误。

我正在测试的项目是 adobot-io-master 链接是 https://github.com/adonespitogo/AdoBot-IO

错误构建是

    Cloning "https://github.com/adonespitogo/AdoBot-IO.git " ...
        Commit: 055663d38c91c2b61ba514e4cbf1469e8e0c36bb (Update README.md)
        Author: Adones Pitogo <pitogo.adones@gmail.com>
        Date:   Fri Feb 15 20:17:22 2019 +0800
    Pulling image "docker-registry.default.svc:5000/openshift/nodejs@sha256:b155814ac48feed9667b590a73f090367cbd7f64e34aaeb4dc70bfc8a4963ace" ...
    Using docker-registry.default.svc:5000/openshift/nodejs@sha256:b155814ac48feed9667b590a73f090367cbd7f64e34aaeb4dc70bfc8a4963ace as the s2i builder image
    ---> Installing application source
    ---> Building your Node application from source
    Current git config
    url.https://github.com.insteadof=git@github.com: 
    url.https://.insteadof=ssh:// 
    url.https://github.com.insteadof=ssh://git@github.com 
    core.repositoryformatversion=0
    core.filemode=true
    core.bare=false
    core.logallrefupdates=true
    remote.origin.url=https://github.com/adonespitogo/AdoBot-IO.git 
    remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
    branch.master.remote=origin
    branch.master.merge=refs/heads/master
    ---> Installing dependencies
    ---> Using 'npm install -s --only=production'
    sh: run-s: command not found
    error: build error: non-zero (13) exit code from docker-registry.default.svc:5000/openshift/nodejs@sha256:b155814ac48feed9667b590a73f090367cbd7f64e34aaeb4dc70bfc8a4963ace

谁能建议我如何做到这一点?

【问题讨论】:

    标签: node.js github deployment openshift redhat


    【解决方案1】:

    找不到命令run-s。如果您查看package.json 文件,您会看到:

        "postinstall": "run-s migrate build",
        "dev": "run-s build start"
    

    我猜它尝试执行postinstall 任务,但找不到run-s 命令,所以它失败了。

    您确定您使用的是安装了 npm/node 的良好 docker 映像来构建您的项目吗?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-09-12
      • 2012-05-12
      • 2020-03-21
      • 1970-01-01
      • 1970-01-01
      • 2010-10-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多