OpenShift V3和增量版本

时间:2016-03-30 14:17:13

标签: openshift

我在使用图像ruby-22-centos7进行增量构建时遇到了一些问题。

我将以下脚本“save-artifacts”添加到.sti / bin目录:

#!/bin/sh -e

pushd ${HOME} >/dev/null

if [ -d ./bundle/ruby ]; then
  tar cf - bundle/ruby
fi

popd >/dev/null

我在构建步骤中遇到此错误:

I0330 13:53:05.022524 1 sti.go:213]使用图像汇编:/// usr / libexec / s2i 15 I0330 13:53:05.022544 1 sti.go:213]使用从image:/// usr / libexec / s2i运行 16 I0330 13:53:05.022551 1 sti.go:213]使用upload / src / .sti / bin中的save-artifacts 17 I0330 13:53:05.024552 1 sti.go:142]为增量构建检测到标签172.30.22.77:5000/blog/blog:latest的现有图像 18 I0330 13:53:05.024570 1 sti.go:147]从file:/// tmp / s2i-build462497527 / upload / src执行源代码构建 19 I0330 13:53:05.024654 1 sti.go:350]从图像172.30.22.77:5000/blog/blog:latest到路径/ tmp / s2i-build462497527 / upload / artifacts保存构建工件 20 I0330 13:53:05.026788 1 docker.go:374]脚本和未编译的源都将放在'/ tmp'中 21 I0330 13:53:05.026820 1 docker.go:510]使用config创建容器:{主机名:域名:用户:内存:0 MemorySwap:0 CPUShares:0 CPUSet:AttachStdin:false AttachStdout:true AttachStderr:false PortSpecs:[] ExposedPorts:map [] Tty:false OpenStdin:false StdinOnce:false Env:[] Cmd:[/ tmp / scripts / save-artifacts] DNS:[] Image:172.30.22.77:5000 / blog / blog:latest Volumes:map [] VolumeDriver:VolumesFrom:WorkingDir:MacAddress:Entrypoint:[] NetworkDisabled:false SecurityOpts:[] OnBuild:[] Mounts:[] Labels:map []} 22 I0330 13:53:05.685226 1 docker.go:5244]附加到容器 23 I0330 13:53:05.686542 1 docker.go:530]起始容器 24 E0330 13:53:10.836202 1 tar.go:207]读取下一个tar标题时出错:io:关闭管道上的读/写 25 W0330 13:53:10.859154 1 sti.go:150]由于错误保存以前的构建工件,将执行清理构建 26 I0330 13:53:10.859172 1 sti.go:152]错误:超时等待焦油流

非常感谢任何帮助!

0 个答案:

没有答案
相关问题