为什么Red Hat OpenShift不会克隆项目?

问题描述 投票:0回答:1

我正在测试名为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 <[email protected]>
        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://[email protected]: 
    url.https://.insteadof=ssh:// 
    url.https://github.com.insteadof=ssh://[email protected] 
    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个回答
0
投票

它找不到命令run-s。如果你查看package.json文件,你可以看到:

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

我想它试图做postinstall任务,它找不到run-s命令,所以它失败了。

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

© www.soinside.com 2019 - 2024. All rights reserved.