openshift

How to compile node.js module canvas on RedHat OpenShift servers?

℡╲_俬逩灬. 提交于 2019-12-10 11:51:46
问题 On RedHat OpenShift servers it is not possible to compile node.js module canvas, because there are missing cairo libraries for the linux, and related required libraries as well. 回答1: This is how to make it compile: export PATH=/sbin:$PATH:$OPENSHIFT_DATA_DIR/usr/local/bin export LD_LIBRARY_PATH=$OPENSHIFT_DATA_DIR/usr/local/lib:/opt/rh/nodejs010/root/usr/lib64:$LD_LIBRARY_PATH export PKG_CONFIG_PATH=$OPENSHIFT_DATA_DIR/usr/local/lib/pkgconfig cd $OPENSHIFT_DATA_DIR curl -L http://sourceforge

How to host Django localhost application no openshift?

岁酱吖の 提交于 2019-12-10 11:26:10
问题 I have create a Django application in my localhost.Now i need to host in the internet.I have tried openshift and pythonanywhere also.But hosting is not easy as i thought.How can i host localhost application in cloud? 回答1: Here are the links and description, you can learn and start. PythonAnywhere PythonAnywhere is an online Integrated Development Environment (IDE) and Web hosting service based on the Python programming language. It provides in-browser access to server-based Python and Bash

Socket.io.js returns 404 on OpenShift

霸气de小男生 提交于 2019-12-10 10:43:15
问题 I'm new to node.js and I'm trying to create a chat app following the tutorial on socket.io's website. I've got it working on my local machine, but now I'm trying to upload it to an OpenShift Server. In my app, I have the line: <script src="/socket.io/socket.io.js"></script> On my local machine, it loads fine, but on my server, it returns a 404 error. I thought that my node_modules might not be loading at first, but after shh-ing into the server and checking, I see they are present. My

Install elasticsearch on OpenShift

我只是一个虾纸丫 提交于 2019-12-10 10:38:16
问题 I installed a pre build Elasticsearch 1.0.0 version by reading this tutorial. If I start elasticsearch I got the following error message, Should I try an older version of ES or how to fix this issue? [elastic-dataportal.rhcloud.com elasticsearch-1.0.0]\> ./bin/elasticsearch [2014-02-25 10:02:18,757][INFO ][node ] [Desmond Pitt] version[1.0.0], pid[203443], build[a46900e/2014-02-12T16:18:34Z] [2014-02-25 10:02:18,764][INFO ][node ] [Desmond Pitt] initializing ... [2014-02-25 10:02:18,780][INFO

How to deploy multi-module maven spring boot application on OpenShift

Deadly 提交于 2019-12-10 10:34:29
问题 I have a multi-module spring-boot project that I want to deploy on Openshift, where I have installed Jenkins as well. Source code is hosted in Github. Each module consists in a war, in order to have a microservices structure: <modules> <module>xyz-common</module> <module>xyz-data-services</module> <!--a REST service to interact with mongodb--> <module>xyz-batch-importer</module> <!--a service to import files into Mongo--> <module>xyz-frontend</module> </modules> I found tutorial to deploy

Openshift: After modifying code and Git push. Changes dont show

北慕城南 提交于 2019-12-10 10:18:33
问题 I created a new app in OpenShift . App got created successfully and cloned to the local directory also. I modified and changed the default index.html all also add web.xml to put index.html in welcome-file-list . But it doesn't show the changes at all. when I run the URL, it would show the default index.html. even appending the index.html URL, it still shows the default page I deleted the app multiple times and created a new one with a new local repo in order to check what is going wrong Every

Private Key authentication failed error in Eclipse for openshift

只愿长相守 提交于 2019-12-10 10:18:32
问题 In Eclipse, when I am trying to import the existing application from openshift, it gives me following error - Could not clone the repository. Authentication failed. Please make sure that you added your private key to the ssh preferences. I have followed the below steps- 1. In Eclipse go to Window -> Preferences -> General -> Network Connection -> SSH2 -> Key Management 2. Generate RSA Key 3. Paste the public key content in openshift Express account. 4. Save the private key with passphrase.

Error when pushing changes to openshift project

不打扰是莪最后的温柔 提交于 2019-12-10 10:03:38
问题 when I tried to push some changes in open shift project I got this error when trying to build the project: remote: Found pom.xml... attempting to build with 'mvn --global-settings /var/lib/openshift/531f20d5500446fb69000112/app-root/runtime/repo//.openshift/config/settings.rhcloud.xml clean package -Popenshift -DskipTests' remote: [INFO] Scanning for projects... remote: [INFO] remote: [INFO] ------------------------------------------------------------------------ remote: [INFO] Building

Redhat openshift - Cron Runtime - Is there a default time for how long cron executes

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 09:37:34
问题 Cron on Redhat openshift is cancelled by SIGTERM after some minutes. Is there a default timeout on how long cron tasks can execute? If yes, how to get long running tasks working? 回答1: Yes, There is apparently a default timeout of 5 min on top level script for cron tasks execution on Redhat openshift. The solution is to use "nohup" to get long running tasks working. For ex: File .openshift/cron/minutely/task1 - nohup /path-to/some-other-script > $OPENSHIFT_LOG_DIR/logfile 2>&1 & 来源: https:/

OpenShift action_hooks are not executable

寵の児 提交于 2019-12-10 09:36:34
问题 When I created a test DIY application in OpenShift, the action_hooks worked fine, but now I created an actual application and they just don't fire when I push changes. I did some investigating, and I found the problem - for some reason the action hooks are not executable. I checked and they were executable in the test application(where they worked) - but now they aren't. chmod ing them doesn't help, since every time I push some changes OpenShift copies the new repo folder over the old one