openshift

Displaying Images Stored In OPENSHIFT_DATA_DIR

谁都会走 提交于 2019-12-25 02:58:18
问题 I have a non-scalable OpenShift app which uses the jbosseap cartridge and also has MySQL and PhpMyAdmin. I can upload and save image files to folders within the OPENSHIFT_DATA_DIR, e.g OPENSHIFT_DATA_DIR/appimages/uploaded.png but I have not been able to display the uploaded images with the HTML img tag. There seem to be no way to get a correct path to images uploaded under OPENSHIFT_DATA_DIR. I ssh-ed into the server and found that OPENSHIFT_DATA_DIR, which evaluated to /app-root/data/

Can't add a MySQL cartridge on OpenShift

有些话、适合烂在心里 提交于 2019-12-25 02:39:11
问题 I went to spin up a new application today and I'm running into some issues. I was able to add the PHP 5.4 cartridge just fine. I went to add a MySQL 5.5 cartridge and I received the following: Starting MySQL 5.5 cartridge MySQL server failed to start: 140320 03:05:46 mysqld_safe Logging to '/var/lib/openshift/532a883a4382ec501600043b/mysql//log/mysql_error.log'. 140320 03:05:46 mysqld_safe Starting mysqld daemon with databases from /var/lib/openshift/532a883a4382ec501600043b/mysql/data/

Change Base link of website using .htaccess file

不想你离开。 提交于 2019-12-25 02:38:15
问题 can editing .htaccess file. Base address of site for all link on home page will changed? scenario :My osclass hosted at openshift cloud with url http://myappdomain.rhcloud.com After adding alias at server side i am using www.mydomain.com with forwarding masking feature.Everyting is fine for home page.But poblem is when user click on any link on website.Browser URL field change from www.mydomain.com to http://myappdomain.rhcloud.com/link instead of www.mydoamin.com/link.but if user manually

Scaling Drupal 7 on Openshift

廉价感情. 提交于 2019-12-25 02:33:13
问题 i am setting up a drupal site and would like to make it scalable on openshift (bronze plan, Small.highcpu). two questions in this respect: a) background tasks? would be great if someone can explain point 3 in more detail: from https://github.com/openshift/drupal-quickstart/blob/master/README.md: Because none of your application code is checked into Git and lives entirely in your data directory, if this application is set to scalable the new gears will have empty data directories and won't

Invalid cartridge specified with exit_code 109

无人久伴 提交于 2019-12-25 02:21:50
问题 i want to create app with REST API Openshift i do this curl Command with smarterclayton cartridge : curl -k -X POST https://openshift.redhat.com/broker/rest/domains/jhaopenshift/applications --user "user@gmail.com:passwd" --data "name=myapp&cartridge=https://github.com/smarterclayton/openshift-cdk-cart/blob/master/metadata/manifest.yml&scale=false" but i still have and Invalid Cartridge error : { "api_version":1.6, "data":null, "messages":[{"exit_code":109, "field":"cartridge", "index":null,

How should dynamic Kubernetes/OpenShift DNS resolution be configured?

蓝咒 提交于 2019-12-25 01:49:39
问题 I'm unable to find relevant information on this, which is why I'm asking the question here. Instead of using /etc/hosts which is a hacky solution for resolving Kubernetes container names to their service IP addresses, what would the best method be to automatically or dynamically map new Kubernetes pods to their service IPs? I've heard using /etc/resolv.conf is one such method, but was unable to find exactly how that file should be configured for this scenario. 回答1: If you are using OpenShift

Setting up Kafka on Openshift with strimzi

牧云@^-^@ 提交于 2019-12-25 01:49:10
问题 I am trying to set up a kafka cluster on the Openshift platform using this guide: https://developers.redhat.com/blog/2018/10/29/how-to-run-kafka-on-openshift-the-enterprise-kubernetes-with-amq-streams/ I have my zookeeper and kafka clusters running as shown here: and when running my application as the bootstrap-servers I input the route to the my-cluster-kafka-external bootstrap. But when I try to send a message to Kafka i get this message: 21:32:40.548 [http-nio-8080-exec-1] ERROR o.s.k.s

Openshift Online 3 with WebSockets. What is the correct “ws”?

守給你的承諾、 提交于 2019-12-25 01:45:07
问题 The problem is that after migrate from Openshift 2 to Openshift 3 I can't get WebSockets communication. Here is the same question but it doesn't work for me. I've got: Error during WebSocket handshake: Unexpected response code: 404 After refresh the same page: Error during WebSocket handshake: Unexpected response code: 503 This is my code var wsUri ="ws://" + document.location.host + "/scada1WebSockEndpoint" var websocket = new WebSocket(wsUri); And it works on my local Apache but does not

Openshift add java option

。_饼干妹妹 提交于 2019-12-25 01:35:29
问题 In open shift I would like to change my yaml file to enable to do this... -Djavax.net.debug=ssl:handshake:verbose My env section currently looks like... env: - name: JAVA_OPTIONS valueFrom: secretKeyRef: name: mule-java-options key: JAVA_OPTIONS - name: MULE_KEY valueFrom: secretKeyRef: name: encryption-key key: ENCRYPT_KEY - name: JAVA_MAX_MEM_RATIO value: '35' - name: JAVA_DIAGNOSTICS value: 'on' 回答1: Depending if you use a Red Hat XPaaS image; you can use JAVA_OPTS_APPEND environment

Openshift Connect To MySQL From Local Java Application

僤鯓⒐⒋嵵緔 提交于 2019-12-24 22:32:22
问题 I'm using a scalable app on openshift and I'm trying to access its database from a local app but I am having trouble setting up the connection. I need to access my MySql 5.5 database. IDE: Netbeans 7.4 I am using the environment variable values for the connection. I have no trouble connecting to it using my JBoss app in Openshift. Any help would be much appreciated. Sorry for the incomplete info. I am new here in SOF. 回答1: If you have the rhc client installed (see Client Tools Installation