openshift

Can I use my existing git repo with openshift?

为君一笑 提交于 2019-12-17 06:19:22
问题 Is it necessary to have git repo on openshift only? I already have bitbucket / github git repo and would prefer to push there only. Can I simply hook into it so that openshift gets intimation ? Or for simplification, I push only at github, but when I want to deploy, I do something with openshift? I did check this but it confused me: it's talking about merging exiting and new (openshift) git ? 回答1: I have the impression that you're not used to use git enough yet. I'd advise you to get into git

rhc setup gives error `no such file dl/import`

a 夏天 提交于 2019-12-17 03:52:10
问题 I'm installing openshift client tools as described: https://developers.openshift.com/en/getting-started-windows.html#client-tools. On step 'Setting up Your Machine' I got error: rhc setup C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' : cannot load such file -- dl/import (LoadError) Full stack trace: C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- dl/import (LoadError) from C:/Ruby22-x64/lib/ruby/2.2

rhc setup gives error `no such file dl/import`

試著忘記壹切 提交于 2019-12-17 03:50:47
问题 I'm installing openshift client tools as described: https://developers.openshift.com/en/getting-started-windows.html#client-tools. On step 'Setting up Your Machine' I got error: rhc setup C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' : cannot load such file -- dl/import (LoadError) Full stack trace: C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- dl/import (LoadError) from C:/Ruby22-x64/lib/ruby/2.2

ceph 生成扩容惊魂24小时

筅森魡賤 提交于 2019-12-15 23:06:29
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 终于渡过了ceph 生产环境数据迁移惊魂24小时。下面就记录一下遇到的问题和解决办法,一遍后面再遇到问题有应对办法。下面先说一个openshift的问题。 关于openshift大家应该都不陌生,很多openshift需要挂载云存储都对接的是ceph集群。正确情况下openshift使用ceph集群都没有问题,但是遇到ceph迁移就有问题了。ceph集群如果要迁移想必IP都会变,但是对于openshift就是个麻烦事情。在openshift上云盘就是一个远程存储磁盘是通过网络来链接的。那么挂载的磁盘肯定要记录下远程云盘的IP和端口,但是最要命的是云盘一旦挂载成功这个IP和端口都是无法改变的。如果云盘使用的是ceph集群,且ceph集群要迁移,ceph对外服务的mon 服务的IP就变了,这对于openshift来说就是致命的。所以对应于生成环境建议单独使用服务器做mon服务,这样即使以后迁移数据mon是不变的。好了下面就给大家说说在迁移后openshift无法对接新的mon时又重新使用老IP再迁移一次(其实可以直接改ceph集群的IP,但是风险大,不建议)。 1 添加osd 报错“bootstrap-osd keyring not found; run 'gatherkeys'” [root@storage12

running a bottle app from mod_wsgi handle results in maximum recursion depth exceeded while calling a Python object

妖精的绣舞 提交于 2019-12-14 04:05:58
问题 I'm getting a strange "RuntimeError: maximum recursion depth exceeded while calling a Python object" from my bottle app. while running it from a wsgi handle (inside a virtualenv) in openshift paas service. the traceback doesn't offer me a clue about what's wrong I should also mention that running the bottle script straight on my dev maching (e.g python pythonapp.py) does work properly. edit: In order to verify this problem is connected to running bottle with mod_wsgi I installed it on my dev

What is <OPENSHIFT_MYSQL_ENABLED> environment variable in openshift v3?

风流意气都作罢 提交于 2019-12-14 02:31:35
问题 How can I to set enabled = "true" on datasource of standalone.xml of Openshift v3 Wildfly container like below. <datasource jndi-name="java:jboss/datasources/MySQLDS" enabled="true" use-java-context="true" pool-name="MySQLDS" use-ccm="true"> I put the OPENSHIFT_MYSQL_ENABLED environment variable to "true" but nothing happended. The answer reference site is the below URL: https://developer.jboss.org/wiki/DataserviceBuilderOnOpenShiftV3Online 回答1: I was dealing with the same problem: the

Overriding openshift maven script (jenkins gear)

橙三吉。 提交于 2019-12-13 15:26:32
问题 I have Jenkins instance on Openshift I've enabled Jenkins build of my Openshift application Here part of Jenkins shell script parts and logs what they produce : # Sync any libraries rsync $upstream_ssh:~/.m2/ ~/.m2/ # Build/update libs and run user pre_build and build gear build command above triggers such action + gear build Found pom.xml... attempting to build with 'mvn -e clean package -Popenshift -DskipTests' Apache Maven 3.0.3 (r1075437; 2011-06-20 13:22:37-0400) Maven home: /etc

Cannot install mysql2 gem on openshift scaled app

陌路散爱 提交于 2019-12-13 09:36:42
问题 I'm trying to install mysql2 gem with ruby on rails 4/ruby 2.0 OpenShift scaled app. But, bundle install fails, trying "gem install mysql2", which leads to the following error: gem install mysql2 Fetching: mysql2-0.4.1.gem (100%) Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /opt/rh/ruby200/root/usr/bin/ruby extconf.rb checking for ruby/thread.h... yes checking for rb_thread_call_without_gvl() in ruby/thread

JSP importing java class in Openshift

℡╲_俬逩灬. 提交于 2019-12-13 07:50:42
问题 I made a java web project in Eclipse and it works great (with jsp, servlets, and java classes). Now I'm trying to make it live. I decided to host it on Openshift which provides its own file structure. I've tried copying my files over and it works for the most part. The problem is my import tags don't seem to work and it doesn't find my classes (such as databaseInteractor which fetches information from my database to be displayed). This might be a path issue but I'm not sure. This is what I

Running Django 1.8 on OpenShift scalable app

≡放荡痞女 提交于 2019-12-13 07:38:38
问题 I am having problems running Django(1.8.7) app on scalable OpenShift platform using python 2.7. For some reason it can not get info of enviroment variable OPENSHIFT_POSTGRESQL_DB_URL . Well this is the error: mod_wsgi (pid=69306): Target WSGI script '/var/lib/openshift/5d5/app-root/runtime/repo/wsgi/application' cannot be loaded as Python module. mod_wsgi (pid=69306): Exception occurred processing WSGI script '/var/lib/openshift/5d5/app-root/runtime/repo/wsgi/application'. Traceback (most