openshift

Permission denied to access /var/run/docker.sock mounted in a OpenShift container

爷,独闯天下 提交于 2019-12-11 16:19:26
问题 Objective Know how to trouble shoot and what knowledge is required to trouble shoot permission issues of Docker container accessing host files. Problem Access to /var/run/docker.sock mounted inside a OpenShift container via hostPath causes permission denied. The issue does not happen if the same container is deployed to K8S 1.9.x, hence it is OpenShift specific issue. [ec2-user@ip-10-0-4-62 ~]$ ls -laZ /var/run/docker.sock srw-rw----. root docker system_u:object_r:container_var_run_t:s0 /var

OpenShift - S2I without source repository

孤街醉人 提交于 2019-12-11 15:57:13
问题 I am working with an OpenShift cluster deployed on a laptop as minishift . When I make changes to my source code, I have to commit to the GitHub repository before I can trigger a build and a deploy. I am using the Source build strategy. It seems a bit roundabout to commit to GitHub before I trigger a build and deploy on my local OpenShift cluster. One way I can think of is to have a GitLab based installation locally (at least, on LAN) to which code is committed. However, is there a way to do

Getting error in Openshift while pushing my app

巧了我就是萌 提交于 2019-12-11 15:45:45
问题 I'm getting some error while pushing my app (already built a Java EE application using Tomcat 6.) in OpenShift. server : JBoss Application Server 7.1 database : MySQL Database 5.1 Here is src folder structure of Openshift com --simsystech --Add.java (using apache log4j api || import org.apache.log4j.Logger) --Edit.java (using csv reader api || import org.apache.log4j.Logger & import org.apache.log4j.Logger) --Import.java (using csv reader api || import org.apache.log4j.Logger & import org

minishift start using HyperV fails when devtools installed on a different drive than /Users

落爺英雄遲暮 提交于 2019-12-11 14:39:55
问题 Is there a known issue wrt installing RH DevelopmentTools to D: when running minishift? I installed to D:\DevelopmentTools, which created a C:\Users\rcoe.minishift directory, in which the RHEL iso is located. Config looks correct: > D:\DevelopmentSuite>minishift config view > - iso-url : file://C:/Users/rcoe/.minishift/cache/iso/minishift-rhel7.iso > - memory : 4096 > - vm-driver : hyperv Yet, when I try to start minishift, it cannot locate the iso. From the error condition, it's not obvious

how to access MySQL on OpenShift without rhc port forward?

杀马特。学长 韩版系。学妹 提交于 2019-12-11 14:22:52
问题 We have a Web Server in our company and create a MySQL Server on OpenShift. We need to use Python to access the database server without rhc port forward, Can we have others way to access MySQL on OpenShift directly? thanks 回答1: You can access the gear directly just as you would any other Database not housed on OpenShift. When you created the MySQL cartridge you should have been given a connection string: mysql://OPENSHIFT_DB_GEAR_DNS:OPENSHIFT_DB_PORT/... You can use that provided connection

OpenShift V3 set variable for project

和自甴很熟 提交于 2019-12-11 14:16:37
问题 I created a bot for Discord in python. The bot requires a token for connection to my server and i don't want to store the token in a python file, because everyone would see it on github. I added an Enviroment variable for my bot token with the same variable name as in the python file (BOT_TOKEN), but the OpenShift doesn't recognizes it. I got the following error: ---> Running application from Python script (main.py) ... Traceback (most recent call last): File "main.py", line 22, in <module>

How can i connect openshift git repository to bitbucket

允我心安 提交于 2019-12-11 13:42:53
问题 I've created a project on Red Hat openshift now i want to know about how can i connect it with my bit-bucket account to maintain and handle my openshift Project with bit-bucket 回答1: Clone your current repo to your computer, git clone {{ ssh:source_code }} The source code URL is available in the app console (under source code) ex: git clone ssh://555065b53433ca08f100001b@appname-domain.rhcloud.com/~/git/example.git/ log in to bitbucket, create a new repo, with type as git . navigate your

Openshift Tornado WebSocket(Demo) not responding

偶尔善良 提交于 2019-12-11 13:37:41
问题 I am trying to host websocket app in python on openshift I found this repo: https://github.com/ramr/openshift-tornado-websockets which uses tornado for websocket and normal HTTP connection, i want to deal with both ws and http,I have successfully deployed the code over openshift. as per the code in binds to default internal port 8000 of openshift, but when i tried connect to ws://piot-cloudap.rhcloud.com:8000/ws-echo/ url end using python websocket client lib, it do connects to the ws URL,

Deployed Node app to OpenShift successfully, OpenShift still shows default page

不羁岁月 提交于 2019-12-11 13:18:35
问题 So here are the steps I've taken so far: Created application on openshift Cloned application's repo Deleted all files for the sample app in the cloned repo Added my project files Performed a Git-Push which completed successfully. I still see the default landing page: The only odd thing I see in the deployment logs this warning, which makes no senses because it's not my code doing that (I'm basically just trying to deploy the sample app from Express) Any ideas as to what could be causing this?

python selenium in openshift server

白昼怎懂夜的黑 提交于 2019-12-11 13:14:19
问题 I need to scrapping some data by python, because of some java codes in target page i could not work with twill and mechanize module of python so i need to run selenium module in my openshift server. so i want to know have could i setup selenium driver (Firefox , chrome ,...) in an openshift server via ssh . i installed selenium by : $pip install selenium but have could i run : when i run this: from selenium import webdriver from selenium.common.exceptions import NoSuchElementException from