回答
您需要执行以下步骤:
git clone <your-external-repo-url>
change to newly cloned git directory
git remote add openshift -f <openshift-git-repo-url>
git merge openshift/master -s recursive -X ours
git push openshift master
这里的reference
不用说''your-external-repo-url>'从'rhc show-app MYAPP | grep'Git URL:'' – saeedgnu
Akram Ben Aissi published an interesting post in the Openshift blog有关如何在Openshift V3部署Gitlab。
我看到它非常有用,如果有人正在寻找最近的更新或这个问题,也许可能会有趣。
很容易,创造postgress,Redis的和gitce并在最后3级新的应用程序添加持久卷:
PostgreSQL的:
oc new-app --template=postgresql-persistent \
-p POSTGRESQL_USER=admin,POSTGRESQL_PASSWORD=redhat,POSTGRESQL_DATABASE=gitlab
Redis的
oc new-app sameersbn/redis
oc volume dc/redis --add --overwrite -t persistentVolumeClaim \
--claim-name=redis-data --name=redis-volume-1 \
--mount-path=/var/lib/redis
获取的Redis和postgresql服务IPs被传递给git-ce容器(在本例中为172.30.25.83,172.30.198.140)
oc get svc postgresql redis
的Git-CE容器
oc new-app sameersbn/gitlab --name=gitlab-ce
-e 'GITLAB_HOST=http://gitlab.apps.mycompany.com' \
-e 'DB_TYPE=postgres' -e 'DB_HOST=172.30.25.83' \
-e 'DB_PORT=5432' -e 'DB_NAME=gitlab' -e 'DB_USER=admin' \
-e 'DB_PASS=admin' -e 'REDIS_HOST=172.30.198.140 -e 'REDIS_PORT=6379' \
-e 'GITLAB_SECRETS_DB_KEY_BASE=1234567890' -e 'SMTP_ENABLED=true' \
-e 'SMTP_HOST=smtp.mycompany.com' -e 'SMTP_PORT=25' \
-e '[email protected]'
配置持久卷:
oc volumes dc/gitlab-ce --add --claim-name=gitlab-log --mount-path=/var/log/gitlab \
-t persistentVolumeClaim --overwrite
oc volumes dc/gitlab-ce --add --claim-name=gitlab-data --mount-path=/home/git/data \
-t persistentVolumeClaim --overwrite
由于链接可能会随时间而改变,所以在您的回答中包含相关信息并提供上下文链接会更好。你能编辑你的答案吗?谢谢,欢迎来到StackOverflow。 –
- 1. 不再能从私人git仓库(Openshift产地)拉
- 2. 如何OpenShift有私人到位桶库
- 3. 从OpenShift上的私人注册表创建图像流
- 4. 私人回购git秘诀
- 5. 克隆私人git仓库的Dockerfile
- 6. git的变基私人特性分支
- 7. Git不带密码的私人回购
- 8. openshift + wordpress + git
- 9. 的Git上OpenShift克隆致命错误
- 10. 来自私人回购的Openshift SSH错误克隆子模块
- 11. 加载我的私人密钥在Mac上使用git
- 12. Vimeo上的私人视频
- 13. 巨人在Openshift
- 14. JIRA和私人Git存储库整合
- 15. Heroku作为私人git存储库
- 16. android-studio项目git私人文件夹
- 17. 私人Git回购 - 冻结在拉
- 18. Capistrano任务git克隆私人宝石
- 19. Git配置:私人远程URL
- 20. 在bitbucket中创建私人git回购?
- 21. 重新使用私人Git回购
- 22. 同步git回购私人回购
- 23. Bash脚本推/从私人Git仓库?
- 24. git私人托管〜4用户
- 25. Openshift and evil Git clone
- 26. Git:部署到OpenShift
- 27. Openshift - 触发Jenkins构建在git push上
- 28. openshift imagestream不跟踪私人码头回购
- 29. openshift私人码头注册表无法推[docker-maven-plugin]
- 30. 为什么Openshift将缓存控制添加到私人?
为什么我收到downvote? – Berneck
“OpenShift中的私人github存储库”?你的意思是“OpenShift中的一个私人* git *存储库” – saeedgnu
@ilius true,现在编辑。 –