openshift

Installing Docker with sudo

廉价感情. 提交于 2019-12-12 03:09:40
问题 I am trying to set up a Discourse forum on OpenShift. When I try to install docker, $> wget -qO- https://get.docker.io/ | sh Error: this installer needs the ability to run commands as root. We are unable to find either "sudo" or "su" available to make this happen. $> sudo wget -qO- https://get.docker.io/ | sh bash: usr/bin/sudo: permission denied. $> su wget -qO- https://get.docker.io/ | sh bash: /bin/sudo: permission denied. 回答1: You do not have root access on OpenShift as a web dev. You

Can openshift/rhcloud variables be used in an .htaccess file

与世无争的帅哥 提交于 2019-12-12 03:07:54
问题 Openshift sets several environment variables that can be used. See here (variables: OPENSHIFT_*) https://developers.openshift.com/en/managing-environment-variables.html Has anyone used these variables in their .htaccess file or can anyone assist in doing so? My use specifically applies to a Mojolicious app as getting it to work on Openshift requires the following line in the .htaccess file. [ID HERE] refers to the OPENSHIFT_APP_UUID value. I manually type the value there now, and in theory,

Publishing private code to OpenShift

送分小仙女□ 提交于 2019-12-12 02:49:59
问题 I don't have any technical problems publishing a python wsgi app using OpenShift. My concern is that they generate a Git repo for you to use, and you have to push to that repo in order to publish your code. Private Git repos cost money, so I assume the repo they generate is public. Making this code public is not an option as it could someday be proprietary. I really like OpenShift and want to use it for this project. Does anyone know of a way to publish using OpenShift but still keep the code

Wrong PHP version returned in Openshift

心不动则不痛 提交于 2019-12-12 02:43:10
问题 I have created a PHP application (from scratch) using instructions available here. In /mish/make.sh , the php version is 5.5.18. After the build, the php info page confirms the version: 5.5.18. Yet, when I log in my Openshift application with SSH, php --version returns 5.3.3 with a wrong build date: I discovered this issue when I tried to install Composer on Openshift. I got an error message when git pushing back to Openshift: I don't know whether the issue is related to the DYI cartridge or

How to bind DatagramSocket to particular port in Openshift

三世轮回 提交于 2019-12-12 02:38:53
问题 I am running siple java jar service on openshift which tried to connect with DatagramSocket and Getting this Exception: java.net.BindException: Permission denied at java.net.PlainDatagramSocketImpl.bind0(Native Method) at java.net.AbstractPlainDatagramSocketImpl.bind(AbstractPlainDatagramSocketImpl.java:96) at java.net.DatagramSocket.bind(DatagramSocket.java:397) at java.net.DatagramSocket.<init>(DatagramSocket.java:251) at java.net.DatagramSocket.<init>(DatagramSocket.java:304) at java.net

Why is my app constantly pinged?

拈花ヽ惹草 提交于 2019-12-12 02:28:19
问题 I'm developping a small app with nodejs on Openshift and noticed something that looks weird to me: when I do rhc tail -a MyApp , I see my app is being "pinged" about every second: GET / 200 9ms - 170b GET / 200 8ms - 170b GET / 200 8ms - 170b GET / 200 10ms - 170b GET / 200 9ms - 170b GET / 200 9ms - 170b ... (and so on) I'm pretty sure there's nothing in my code that would cause this. Is this coming from the OpenShift side ? EDIT: Just created a sample app and noticed the same behaviour; so

Add local jar to Maven project which will be deployed to Openshift

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 02:24:33
问题 I've created local library which want to use in another local project, both are maven projects. As I read in the Internet I've published project to local maven repository and used it as maven dependency. The problem is that this is local and I want to deploy this project to OpenShift where application is built again by server. Of course project doesn't compile becouse of local dependency (server doesn't see this dependency). How to solve this problem? Should I add *.jar to libs dir and

Deploying applications on OpenShift

心不动则不痛 提交于 2019-12-12 02:19:49
问题 I am building an application for OS(OpenShift) and was wondering is it possible to deploy code which is not in the git repo, like uploading plugins to a wordpress site? NOTE The application is not a WP site, nor related in any way to a similar CMS. SO i need a way to deploy additional code after deployment without pushing it to the repo. 回答1: As Nam said, you can just use scp, sftp etc. However, keep in mind that this could cause problems down the road as when you scale up we rsync the repo

Multiple command for bash shell script [duplicate]

与世无争的帅哥 提交于 2019-12-12 01:57:23
问题 This question already has answers here : Bash: How to avoid warning: here-document at line XX delimited by end-of-file (wanted `EOM') [duplicate] (2 answers) here-document gives 'unexpected end of file' error (5 answers) Closed 2 years ago . I want to assign a variable after executing the set of commands The first command is to get into the shell of the openshift pod. Then cat a file and assign that to a variable outside the openshift container. I tried it like this check=$(oc rsh pod << EOF

Access remote mysql server(openshift) via codeIgniter

女生的网名这么多〃 提交于 2019-12-12 01:55:30
问题 I have added a mysql cartridge in openshift. I wanted to access the mysql server by a simple codeIgniter application running in my localhost. But I can not connect. here is configuration of mysql env | grep MYSQL OPENSHIFT_MYSQL_DB_PORT=3306 OPENSHIFT_MYSQL_DB_HOST=XXX.XXX.XXX.XXX OPENSHIFT_MYSQL_DB_PASSWORD=password OPENSHIFT_MYSQL_DB_USERNAME=userame And here is my /application/config/database.php $db['default']['hostname'] = 'XXX.XXX.XXX.XXX'; $db['default']['username'] = 'password'; $db[