3

我正在尝试在 OpenShift Container 平台上构建和部署一个基于 dotnetcore 的 ASP.NET 应用程序(使用 AngularJS)。构建操作失败并出现以下错误:

chgrp: changing group of '/opt/app-root/src/..1981_10_01_08_47_25.068924002/.gitconfig': Operation not permitted
chgrp: changing group of '/opt/app-root/src/..1981_10_01_08_47_25.068924002/password': Operation not permitted
chgrp: changing group of '/opt/app-root/src/..1981_10_01_08_47_25.068924002/username': Operation not permitted
chgrp: changing group of '/opt/app-root/src/..1981_10_01_08_47_25.068924002': Operation not permitted
chgrp: changing group of '/opt/app-root/src/..data': Operation not permitted
chgrp: changing group of '/opt/app-root/src/.gitconfig': Operation not permitted
chgrp: changing group of '/opt/app-root/src/password': Operation not permitted
chgrp: changing group of '/opt/app-root/src/username': Operation not permitted
chmod: changing permissions of '/opt/app-root/src/..1981_10_01_08_47_25.068924002': Operation not permitted
chmod: changing permissions of '/opt/app-root/src/..1981_10_01_08_47_25.068924002/.gitconfig': Operation not permitted
chmod: changing permissions of '/opt/app-root/src/..1981_10_01_08_47_25.068924002/password': Operation not permitted
chmod: changing permissions of '/opt/app-root/src/..1981_10_01_08_47_25.068924002/username': Operation not permitted
chmod: changing permissions of '/opt/app-root/src/..1981_10_01_08_47_25.068924002': Operation not permitted

error: build error: non-zero (13) exit code from registry.access.redhat.com/dotnet/dotnet-20-rhel7@sha256:0dbafdca780475373a34be07877b152f94ff7ef4168758f1f9011bc71793245f

我选择执行 source2image 构建。所以,我不确定出了什么问题。有人可以建议吗?谢谢。

4

1 回答 1

1

我找到了错误的原因和解决方法。原因是s2i脚本调用了此处assemble可用的脚本。在第 121 行有一个电话给我带来了问题。fix-permissions

为了解决这个问题,我创建了这个脚本的一个本地副本assemble并注释掉了这些行并解决了这个问题。

我能够构建和部署我的应用程序。谢谢

于 2018-01-12T10:44:39.170 回答