首页 > 解决方案 > 在 Redhat Openshift 中获取 Assemble 脚本失败错误构建应用程序

问题描述

我是 Redhat 的新手OpenShift,正在尝试部署节点应用程序(使用 angularjs + mysql)并遇到构建问题。

使用openshift控制台创建的节点应用程序并在高级选项中指向私有存储库和链接的配置密钥(到私有存储库的 ssh 密钥)。

我的构建失败了"Assemble script failed"。如下粘贴日志(来自控制台 - 混淆的私钥和值)。

不确定我是否缺少一些配置。感谢您对此的帮助。

Cloning "ssh://username@bitbucket.org/username/my-app.git" ...
Commit: xxxxxxxxxxxxxxxxx (Fixed readme)
Author: Name <email>
Date:   Wed Sep 6 19:50:59 2017 -0700
Pulling image "docker- 
registry.default.svc:5000/openshift/nodejs@sha256:0000000000000" ...
---> 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=ssh://username@bitbucket.org/username/my-app.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' 
error: build error: non-zero (13) exit code from docker- 
registry.default.svc:5000/openshift/nodejs@sha256:0000000000000

请注意,我的源代码托管在私有存储库上,并且根据上面的日志,openshift 似乎能够访问存储库并下载源代码。

标签: openshiftredhat

解决方案


感谢格雷厄姆的指点。我重新创建了应用程序,这次在 Web 控制台的高级选项中选择了 1 GB(默认为 500 mb),之后我的构建工作正常。


推荐阅读