openshift

How can OpenShift container learn its image ID?

守給你的承諾、 提交于 2019-12-24 11:34:00
问题 I would like to add a configuration option to a proprietary, PostgreSQL-based Docker image for OpenShift 3.9 in the form of a template variable INITDB . The image provides a database that is backed by persistent storage, and from now on the database should only be initialized when that variable (flag) is set. The image is built with OpenShift's Docker build strategy and PostgreSQL's initdb is called in the Dockerfile 's ENTRYPOINT script: so it executes whenever the container starts up.

Tomcat8 on OpenShift

冷暖自知 提交于 2019-12-24 10:49:24
问题 Is there a Tomcat 8 cartridge for OpenShift? I know that you can install Tomcat8 in a DIY cartridge, but I was looking for a faster and easier solution. And if there is one, how can I install it and how can I migrate an application from jbossews 2 (tomcat7)? I tried to use https://github.com/openshift/origin-community-cartridges/tree/master/openshift-origin-cartridge-tomcat as a downloadable cartridge, but I got this error: The provided downloadable cartridge 'https://github.com/openshift

Openshift node.js successful deployment, but “Application is not available”

删除回忆录丶 提交于 2019-12-24 09:49:10
问题 I'm having a problem getting a node.js app to run on Openshift. I've set up my openshift project to pull from a git repo. My server.listen call is being made like this: var port = process.env.OPENSHIFT_NODEJS_PORT || process.env.PORT || 8080; var ip = process.env.OPENSHIFT_NODEJS_IP || process.env.IP || '127.0.0.1'; var server = http.createServer(myServerFunction); server.listen(port, ip); The pull and build work fine. I can see in the pod terminal that my app is running because there is some

How to create app with credentials in OpenShift?

大兔子大兔子 提交于 2019-12-24 08:37:23
问题 Try to create Node.js app in OpenShift in terminal, like this: ./oc new-app https://j4nos@bitbucket.org/j4nos/nodejs.git Source code in BitBucket in a private account, how to set credentials? Once it asked for password, but not again. How can I set credentials? Added annotated secret from GUI: repo-at-bitbucket I have read Private Git Repositories: Part 2A tutorial, strange that for HTTPD app there is a Source Secret filed to select secret, but not when Node.js + MongoDB combo is selected.

Openshift 3.X with Websockets

本秂侑毒 提交于 2019-12-24 06:26:10
问题 I'm trying to host a websocket-application op Openshift 3, but I have running into some issues. Code at the backend: templatePath = os.path.join(os.path.dirname(__file__), "templates") staticPath = os.path.join(os.path.dirname(__file__), "static") settings = { "template_path": templatePath, "static_path": staticPath, "debug" : True } application = web.Application([ (r'/ws', WSHandler), (r'/', MainHandler, {"staticFilesPath":staticPath}), (r"/(.*)", tornado.web.StaticFileHandler, {'path':

how to create configure and depoly Php app on openshift v3.x

a 夏天 提交于 2019-12-24 06:18:13
问题 We as developers believe that Openshift v2 was a great platform for developing and deploying apps, now the Life of v2 is going to be end and the v3.x is arrived to play its role. As a new to v3 architecture, I would say this is bit difficult to get started as easy as v2 was, I have some questions to ask in first place : In v2 we can create an application and there comes a link to clone the repo locally, how can we create a PHP application on v3 without Github repo and clone that to local repo

Build keycloak docker hub image in openshift from new-app command

眉间皱痕 提交于 2019-12-24 05:54:57
问题 I'm trying to deploy the Keycloak image Keycloak HA Postgres in openshift 3.6. As precondition I have to say I can't run docker on my local machine, so I have to create the image from oc new-app command. When I try to call oc new-app jboss/keycloak-ha-postgres then the image is downloaded but I have errors when the server starts: Cannot start embedded server: Failed to instantiate class "org.jboss.logmanager.handlers.PeriodicRotatingFileHandler" for handler "FILE": java.lang.reflect

Build keycloak docker hub image in openshift from new-app command

只谈情不闲聊 提交于 2019-12-24 05:54:30
问题 I'm trying to deploy the Keycloak image Keycloak HA Postgres in openshift 3.6. As precondition I have to say I can't run docker on my local machine, so I have to create the image from oc new-app command. When I try to call oc new-app jboss/keycloak-ha-postgres then the image is downloaded but I have errors when the server starts: Cannot start embedded server: Failed to instantiate class "org.jboss.logmanager.handlers.PeriodicRotatingFileHandler" for handler "FILE": java.lang.reflect

getting error: Could not start Ghost Driver

别等时光非礼了梦想. 提交于 2019-12-24 05:12:08
问题 I'm trying to run Ghostdriver inside my Openshift server. As i run this command: ./phantomjs --webdriver=15002 It says: PhantomJS is launching GhostDriver... [ERROR - 2014-08-01T04:14:21.160Z] GhostDriver - main.fail - {"message":"Could not start Ghost Driver","line":82,"sourceId":139887801789952,"sourceURL":":/ghostdriver/main.js","stack":"Error: Could not start Ghost Driver\n at :/ghostdriver/main.js:82","stackArray":[{"sourceURL":":/ghostdriver/main.js","line":82}]} $ ./phantomjs --version

restart python app on openshift doesn't reload environment variables

牧云@^-^@ 提交于 2019-12-24 05:10:10
问题 I'm trying reload my application on Openshift and having some problems. Don't matter if run rhc app restart or rhc app reload to restart/reload the application, my environment variables aren't reloaded. Then, to solve the problem, I'm forced to stop and start the application. PS: Cartridge: python-2.7 Framework: Django 回答1: You also have to do: $ rhc app stop -a appname $ rhc app start -a appname instead of restart or reload. See https://bugzilla.redhat.com/show_bug.cgi?id=1104955#c15 回答2: