openshift

deploy MEAN.JS in Openshift

吃可爱长大的小学妹 提交于 2019-12-24 22:24:37
问题 try deploy my project MEAN.JS from github with the following command but does not work. I searched everywhere and have not found it to be the problem or that otherwise there is to deploy a MEAN.JS application on OpenShift rhc app create trendmedia nodejs-0.10 mongodb-2.4 --env NODE_ENV=production --from-code https://github.com/meanjs/mean .git --trace Application Options ------------------- Domain: meanopen Cartridges: nodejs-0.10, mongodb-2.4 Source Code: https://github.com/meanjs/mean.git

How to get kubernetes service account access token using fabric8 java client?

放肆的年华 提交于 2019-12-24 18:13:20
问题 I have configured minikube in my local machine and going to use kubernetes externally. I have created a Service Account in kubernetes and using it's secret I can get the access token using below command. kubectl get secret <service-account-secret> -o yaml -n mynamespace My question is how can I do this using fabric8 java client in runtime ? What I want is to obtain the access token by giving the secret of the Service account as a parameter. I am initiating the config as bellow. Config config

app not reading input text files

随声附和 提交于 2019-12-24 17:42:32
问题 I have successfully deployed a Java EE app to openshift with tomcat7. I deployed the war file and the welcome page loads but when my app tries to read an input .txt file to the application it can't find it. Any help would be appreciated. My input files (2) are in the /WEB-INF folder in my project in eclipse. This is my relevant code from my startup servlet: public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { // 11 lines of code setting

app not reading input text files

醉酒当歌 提交于 2019-12-24 17:42:14
问题 I have successfully deployed a Java EE app to openshift with tomcat7. I deployed the war file and the welcome page loads but when my app tries to read an input .txt file to the application it can't find it. Any help would be appreciated. My input files (2) are in the /WEB-INF folder in my project in eclipse. This is my relevant code from my startup servlet: public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { // 11 lines of code setting

Web Service on OpenShift

好久不见. 提交于 2019-12-24 17:25:38
问题 I have deployed a web service on OpenShift by annotating a class with @WebService and a public method with @WebMethod. Then, I deployed the class in a WildFly8 container and the server started the service. In order to be able to access the WSDL file I had to create a file "jboss-web.xml" inside the WEB-INF folder and change the context-root. Now I am able to access the WSDL file, but not the service itself. The problem is in this line of the wsdl file: <wsdl:service name="PlotterService">

How to open a JChannel (JGroups) using Openshift Wildfly 8 Cartridge

时光毁灭记忆、已成空白 提交于 2019-12-24 14:34:46
问题 We are developing a Java-EE Application running on Wildfly 8 in the Wildfly-Openshift-Cartridge. The Openshift Application is set to scaled, therefore, more than one JVM node will be running as a cluster. The communicate between the different nodes, I like to use JGroups. However, I fail to open a new JChannel even though the JGroups itself seems to work. The application itself does also work, if I deploy the application locally to e.g. 3 wildfly standalone instances. The default standalone

Cannot load connection class because of underlying exception: 'java.lang.NumberFormatException: For input string: “OPENSHIFT_MYSQL_DB_PORT”'

天涯浪子 提交于 2019-12-24 13:43:07
问题 I am trying to deploy my Jersey project on openshift. I have implemented this apple class to test the error in the another class since I guess the problem is with the establishing the database connection. in the Tails log I found this error: Connecting to database… com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Cannot load connection class because of underlying exception: 'java.lang.NumberFormatException: For input string: "OPENSHIFT_MYSQL_DB_PORT"'. at sun.reflect

Error installing rhc: net-scp requires net-ssh (>= 2.6.5, runtime)

房东的猫 提交于 2019-12-24 12:44:17
问题 I'm trying to install Open shift's client tool to access apps on OpenShift. But I get the following error when I try to install rhc: Error installing rhc: net-scp requires net-ssh (>= 2.6.5, runtime) Couldn't find much help online to resolve this error. [I'm using an old MacBook running SnowLeopard.] Thanks. 回答1: Snow Leopard comes with net-ssh 2.0.4 installed. Try running sudo gem update net-ssh in terminal to update net-ssh, then try installing rhc again. You may want to just run sudo gem

OpenShift里的Pod怎么译?

北战南征 提交于 2019-12-24 12:36:59
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> OpenShift里,有一种资源叫pod。OpenShift里,受控节点(managed node)上,运行着一个个pod;pod之内,又运行着一个或多个Docker容器。这些容器可以是同一种服务的复制体副本,或者是相关的服务的容器,如Apache的容器和MariaDB或MySQL的容器。其实,这个pod的概念来源于OpenShift的三大组件之一——大名鼎鼎的Kubernetes,或简称的K8S。 没有看到有人翻译这个名词。因为它太短了?还是不好翻译? 我觉得不好翻译。上图就是一个原生的pod,豆荚。译成豆荚?于是,我们这样讲: 创建这个豆荚之后,调度器便根据一定的规则,为这个豆荚选择了一个或几个目标服务器,并在上面运行。 是不是感觉有点怪?我们在谈论容器的运行,你却搬出豆荚之类不相干的词汇。我认为,习惯了就好。毕竟,人家原来就是这样用的。容器这个词很形象,可惜已经被Docker占用了。Kuberneste中,受控制节点,或者被管理着的服务器却被冠以一个很屈辱的名字:minion。啥意思?奴仆,下人、跟班。 K8S或OpenShift现在要用一个更大一点的东西把Docker的容器装进去。于是,便找到pod这个名字,除了视觉上,个头比较小之外,也很形象,甚至还有点萌。但是,我建议把pod译为“苞”。

wait for other deployments to start running before other can be created?

别等时光非礼了梦想. 提交于 2019-12-24 12:22:42
问题 I am creating the deployments/services using REST APIs. I send POST request with bodies which contain the JSON objects which create the applications on Openshift. After I call all the APIs, these objects get instantiated. I have 2 deployments which are dependent on mongodb deployment but this mongodb takes a little longer to start running, while the two deployments which are dependent on mongodb start running earlier. This breaks the code inside the 2 deployments as the mongodb connection