OpenShift - S2I without source repository

孤街醉人 提交于 2019-12-11 15:57:13

问题


I am working with an OpenShift cluster deployed on a laptop asminishift. When I make changes to my source code, I have to commit to the GitHub repository before I can trigger a build and a deploy. I am using the Source build strategy.

It seems a bit roundabout to commit to GitHub before I trigger a build and deploy on my local OpenShift cluster. One way I can think of is to have a GitLab based installation locally (at least, on LAN) to which code is committed. However, is there a way to do away with commit to GitHub/GitLab completely? Or a git repository is a minimum requirement?


回答1:


I tried GitLab CE on Ubuntu; but, for some reason the login page won't come up ever. So, I ended up using git-http-server package; not ideal, but it does the trick.

:rolleyes:



来源:https://stackoverflow.com/questions/58075389/openshift-s2i-without-source-repository

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