Google container builder DockerFile with git submodules

一笑奈何 提交于 2021-01-28 06:35:40

问题


Our container-builder fail to build an image we have that has a private git submodule command as part of the DockerFile.

I linked the console account with the bitbucket account, (which has access to all repos) but still the build fail with "access denied" to the submodule repo.

in Quay.IO builder i solved this by adding the ssh-key to the submodule repository, but since Container-Builder link with my account i can't use that solution.


回答1:


Handling access to private submodules is a known deficiency of Cloud Source Repositories. We've added a feature request to them to add this support.

In the meantime, Cloud Builder is adding better support for the piping of keys / secrets, and will publish an example of how this can be done. This will likely be helpful for this use case.

The feature is likely to land in Q3. In the meantime, take a look at:

https://cloud.google.com/container-builder/docs/tutorials/using-encrypted-files

to see if that solves the immediate issue.



来源:https://stackoverflow.com/questions/44633329/google-container-builder-dockerfile-with-git-submodules

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!