openshift

Failed to Resolve Target Definition on OpenShift

半世苍凉 提交于 2019-12-12 01:36:57
问题 I'm trying to get a Tycho build to work on an OpenShift server. Locally resolving the target definition and building works fine, but when deploying I get the following error: Unable to read repository at http://download.eclipse.org/rt/rap/2.2/content.xml. Permission denied I'm not sure if its a problem in the Tycho configuration (but as far as I can remember, I didn't do anything outside the build reactor to make Tycho work) or the one of OpenShift. Could someone tell me what the problem is

git : push a file to openshift online without tracking its changes

佐手、 提交于 2019-12-11 23:57:50
问题 I have a local repository and push my code to an openshift online remote repository. Openshift Online then deploys the app automatically. Each time I modify a CSS, I have to run a script to minify it and the minified file gets tracked in order to be pushed on openshift. Would it be possible to push the minified file without tracking its changes ? Through a git option or by building the minified file directly on the openshift cartridge ? 回答1: You can make .gitignore file in your local repo,

Don't force SSL on OpenShift gear?

非 Y 不嫁゛ 提交于 2019-12-11 23:33:29
问题 I have a simple PHP gear set up on OpenShift. I had everything working well until I added a custom alias for my own domain. I am on the free option and don't have the ability to configure an SSL certificate, and I don't want to, this site is very simple. The problem that I get is that its forcing my alis to https even though I have not set that up. I also haven't configured any apache rewrites to force ssl. For my DNS settings I am just pointing the www cname to my gear as they explained, I

I am having problems using Java MongoClient to access collections in my database

牧云@^-^@ 提交于 2019-12-11 22:54:49
问题 I have been battling to access MongoDB collections in my openshift web application from my Java client, and failing at every turn. I can connect but cannot query the collections in any way. Here is the current error message: JBWEB000070: exception org.springframework.web.util.NestedServletException: Request processing failed; nested exception is com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference

Getting “ImproperlyConfigured: The SECRET_KEY setting must not be empty.” error when deploying mezzanine 3.0.9 on openshift

爱⌒轻易说出口 提交于 2019-12-11 19:49:24
问题 I have been following this (http://appsembler.com/blog/django-deployment-using-openshift/) tutorial to deploy mezzanine 3.0.9 with python 2.7 and mysql 5.1 After deploy when I make the http request I am getting following error logs: [Sat Mar 22 00:44:31 2014] [error] /var/lib/openshift/532c9876e0b8cdcdeb0001c8/python/virtenv/lib/python2.7/site-packages/Mezzanine-3.0.9-py2.7.egg/mezzanine/utils/conf.py:51: UserWarning: You haven't defined the ALLOWED_HOSTS settings, which Django 1.5 requires.

OpenShift - Unable to connect Strimzi from KafkaJS

半城伤御伤魂 提交于 2019-12-11 19:36:40
问题 I have Strimzi Kafka cluster set-up successfully on OpenShift. I can see the following services: kafka-brokers kafka-bootstrap zookeeper-client zookeeper-nodes This is actually different from what is called out here; so, not sure, if this is a Strimzi installation issue. I followed installation steps from here. I created a routes for kafka-bootstrap and kafka-brokers on port 9092 (non-TLS clients). In both cases, I get a ECONNREFUSED error when I provide the route value (e.g. my-cluster

Openshift, can't connect to Mysql from console

落爺英雄遲暮 提交于 2019-12-11 19:29:39
问题 I'm connected via SSH to my openshift server. I type: env | grep MYSQL OPENSHIFT_MYSQL_DB_PORT=42361 OPENSHIFT_MYSQL_DB_HOST=XXXXXXX-mydomain.rhcloud.com OPENSHIFT_MYSQL_DB_PASSWORD=MYPASSWORD OPENSHIFT_MYSQL_PATH_ELEMENT=/opt/rh/mysql55/root/usr/bin OPENSHIFT_MYSQL_DB_GEAR_UUID=XXXXXXXXX OPENSHIFT_MYSQL_DB_USERNAME=MYUSERNAME OPENSHIFT_MYSQL_DB_URL=mysql://MYUSERNAME:MYPASSWORD@XXXXXX-mydomain.rhcloud.com:42361/ OPENSHIFT_MYSQL_LD_LIBRARY_PATH_ELEMENT=/opt/rh/mysql55/root/usr/lib64 OPENSHIFT

Not getting the Template Repository Layout after deploying Python 2.7 on openshift

a 夏天 提交于 2019-12-11 18:55:16
问题 I am trying to to deploy django-cms on openshift. However, after creating a Python 2.7 application (with rhc app create django-cms python-2.7 ), I don't get the default template layout described in the doc. Instead I get only 3 files: requirements.txt, setup.py and wsgi.py; and the openshift folder. Is this normal? Should I rebuild the layout from there? 回答1: Yes, this is normal. There are lots of examples on python / openshift on github. I wrote one for django, https://github.com/jfmatth

OpenShift 4 之使用https协议访问Route

依然范特西╮ 提交于 2019-12-11 18:34:30
使用OpenShift的oc命令可以将Service内部访问转为(oc的expose子命令)可从外部访问的Route,这种转换缺省是使用http协议访问应用的。如果要支持https协议,除了需要生成证书外,还需要用“oc create route”来创建Route对象。 首先部署一个测试应用 $ oc new-project https $ oc new-app openshift/hello-openshift 创建密钥和证书,其中hello-openshift-my-https.apps-crc.testing是缺省Route的FQDN。 $ openssl genrsa -out example.key 2048 $ openssl req -new -key example.key -out example.csr Country Name ( 2 letter code ) [ AU ] :CN State or Province Name ( full name ) [ Some-State ] :BJ Locality Name ( eg, city ) [ ] :BJ Organization Name ( eg, company ) [ Internet Widgits Pty Ltd ] :RedHat Organizational Unit Name ( eg

OpenShift URL Masking [closed]

99封情书 提交于 2019-12-11 16:21:41
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . How can I get my OpenShift URL http://stats-lebronjamesstats.rhcloud.com/ to show as lebronjamesstats.com . I bought the domain name from Godaddy and setup forwarding and a CNAME record that has subdomain www point to stats-lebronjamesstats.rhcloud.com . I also ran the alias OpenShift commands: rhc alias add