简体   繁体   English

OpenShift EGIT Eclipse

[英]OpenShift EGIT Eclipse

Has anyone out there actually gotten an existing Eclipse Dynamic Web Project working under OpenShift? 外面有没有人真的有一个现有的Eclipse Dynamic Web Project在OpenShift下工作? Does anyone know a tutorial that ties all three title elements together? 有谁知道将所有三个标题元素联系在一起的教程?

I have the OpenShift plug-in and the EGIT plug-in added to Eclipse Kepler. 我将OpenShift插件和EGIT插件添加到Eclipse Kepler。

I've tried creating a new OpenShift Project in Eclipse. 我试图在Eclipse中创建一个新的OpenShift项目。 It does well until the final step when it errors for wanting the location an ssh "pub" file. 直到最后一步,当它因需要ssh“ pub”文件而出错时,它的性能都很好。 Nothing prior had mentioned this and even if I knew where it was or what they were talking about, there's no place in any of the dialogs to enter it. 之前没有人提到过它,即使我知道它在哪里或他们在说什么,也没有任何对话框可以输入。

I've started any number of GIT and OpenShift tutorials or guidelines. 我已经开始了许多GIT和OpenShift教程或指南。 Most think that everyone is using Red Hat Linux. 大多数人认为每个人都在使用Red Hat Linux。 I'm using Windows 8. 我正在使用Windows 8。

It doesn't appear that OpenShift will let you select an existing Eclipse Dynamic Web Project that doesn't already somehow magically exist in OpenShift. 似乎OpenShift不会让您选择一个现有的Eclipse Dynamic Web Project,而它在OpenShift中还没有以某种方式神奇地存在。

I've read the solutions to other user's problems as supplied by Red Hat and they're all very fragmentary and tend to stipulate a degree of knowledge that the questioner simply doesn't have. 我已经阅读了Red Hat提供的针对其他用户问题的解决方案,它们的解决方案都很零散,并且往往会规定发问者根本没有的知识程度。

It's all been very confusing. 一切都很混乱。 I want to host my Dynamic Web Project on OpenShift because they support Tomcat 7, JDK 7 and MySQL 5.5, but somehow I've not found the magic bullet. 我想将我的Dynamic Web Project托管在OpenShift上,因为它们支持Tomcat 7,JDK 7和MySQL 5.5,但是不知何故我找不到魔术子弹。

I recommend to use newer version of JBT (or OpenShift tools) - there are more and more changes over time (new features, fixes...). 我建议使用更新版本的JBT (or OpenShift tools) -随着时间的推移,更改会越来越多(新功能,修复...)。 Newer JBT cannot allow you to start create a new application without having your public key on your OpenShift account . 较新的JBT不允许您在没有公开密钥在OpenShift account上的情况下开始创建新应用程序。

According to your issue. 根据你的问题。 You have to have uploaded your public ssh key on the OpenShift to successfully deploy your existing application. 您必须已在OpenShift上上传了公共ssh key ,才能成功部署现有应用程序。 It's required, bcs . 这是必需的, bcs there is at first created OpenShift application with specific cartridge (in your case Tomcat 7) and then it is overwritten by local application (forced push) - and there is required ssh key for secured connection. 首先创建了具有特定盒式磁带的OpenShift应用程序(在您的情况下为Tomcat 7),然后被本地应用程序(强制推送)覆盖-并且需要使用ssh密钥进行安全连接。 That is a reason why you cannot deploy your existing application. 这就是为什么您不能部署现有应用程序的原因。

To upload SSH key to your OpenShift accoun t open OpenShift explorer and choose your connection, open its context menu and choose Manage SSH Keys... (older version could have different label for this, but it would not be much more different). 要将SSH key上传到您的OpenShift accoun打开OpenShift资源管理器并选择您的连接,打开其上下文菜单,然后选择“管理SSH密钥...”(旧版本对此可以有不同的标签,但不会有太大不同)。 If you don't have any ssh key, wizard allow you to create your own key pair . If you don't have any ssh key, wizard allow you to create your own key pair Make sure, that SSH key is also added into Eclipse SSH2 preferences (I am not sure, which version of OpenShift tools do you use, if there is not link to eclipse preferences, go through Preferences -> General -> Network Connection -> SSH2 ). 确保将SSH密钥也添加到Eclipse SSH2首选项中(我不确定您使用的是OpenShift工具的哪个版本,如果没有链接到eclipse首选项的链接,请通过Preferences -> General -> Network Connection -> SSH2 )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM