All Questions
353
questions
104
votes
11
answers
55k
views
Can I use my existing git repo with openshift?
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 ...
37
votes
14
answers
159k
views
Permission denied (publickey,gssapi-keyex,gssapi-with-mic) on openshift
I am having issues with committing changes to my gear. I have tried to run rhc setup, I also deleted my .ssh folder and executed rhc setup again but that also didnt work.
Not sure what changed but ...
24
votes
4
answers
13k
views
Deploying a local django app using openshift
I've built a webapp using django. In order to host it I'm trying to use openshift but am having difficulty in getting anything working. There seems to be a lack of step by steps for this. So far I ...
16
votes
1
answer
18k
views
How to connect OpenShift with a private BitBucket Repository
I want to host a website on OpenShift but I want my code to synchronize automatically with a "free but private" service like Git, so I found BitBucket.
I tried to connect it by my self by pasting ...
15
votes
2
answers
12k
views
Deploy WAR file to Openshift without using GIT?
I want to upload a WAR file to my Openshift account , but it forces me
to use GIT ot GITHUB (here). Please forgive me for saying this , but this is very very annoying .
Is there any way upload a WAR ...
13
votes
2
answers
211
views
What is resetting the PATH variable at the last second during an OpenShift v2 push hook?
TL;DR: Working app, cloned it, clone doesn't start correctly from push hook (but works fine manually if I ssh in.) PATH has correct Node version added to it, but somewhere right in the last step, the ...
10
votes
2
answers
3k
views
How can I auto-deploy my git repo's submodules on push?
I have a PHP Cartridge that is operating normally, except I can't find a straightforward way to get OpenShift to (recursively) push the files for my git submodules when/after it pushes my core repo ...
10
votes
2
answers
28k
views
"Peer's certificate issuer has been marked as not trusted by the user" in Openshift3
If S2I - "Source-to-image" resource in Openshift3 tries to connect to a TLS Gitlab repository shows the following message: "Peer's certificate issuer has been marked as not trusted by the user".
How ...
10
votes
2
answers
2k
views
How to inspect openshift build log?
I have an application, which is deployed to OpenShift via pushing the source code to the git repo.
I need to troubleshoot a problem, which occurs during maven build, only when it is executed on ...
9
votes
3
answers
3k
views
Private Git on OpenShift
Is any way to configure a private git repository in OpenShift?
Or OpenShift doesn't provide external access to Git repositories?
8
votes
1
answer
17k
views
How to use environment variables in init container args in kubernetes/openshift?
This is an excerpt of my deployment config:
...
spec:
containers:
- env:
- name: GIT_USERNAME
valueFrom:
secretKeyRef:
key: username
...
8
votes
2
answers
2k
views
How to add collaborators to openshift git repo
I have an application set up in redhat openshift and are able to commits and push.
My question is, how do I include my teammates into this repository so that they can do the same as well.
New to git ...
7
votes
2
answers
2k
views
Run git add and commit on Openshift Server
I'm working with a platform that creates a configuration.php file as part of the instillation process. Right now, the installation process is run as part of the build hook on the server. The problem ...
6
votes
2
answers
9k
views
How to open DB connection in Openshift? [closed]
This is my dbcon file in PHP.
Basically, I need to connect my PHP application with openshift MySQL DB. Here's what I did.
<?php
// Database Connection Setting
$dbhost = "127.0.0.1"; // ...
6
votes
5
answers
7k
views
rhc ssh [No system SSH available] error
I want view my openshift application log in my cmd.
I did try :
rhc ssh appname
that time i am getting:
No system SSH available. Please use the --ssh option to specify the path to your SSH ...
6
votes
4
answers
4k
views
Ruby "bundle install" error on Openshift
I'am fairly new in Ruby and terms of deploying app through remote tools. I've tried to deploy my App on free openshift account. And I connot run application.
When I run application i get this error:
...
6
votes
2
answers
976
views
Jenkins on Openshift cannot clone repo
I'm new to both Jenkins and Openshift so getting tied up a bit.
I have set up Jenkins and pointed it to my github repo, but it can't clone it because I can't find anywhere to store my git credentials,...
5
votes
2
answers
5k
views
SSH to Openshift server fails
I am working with jboss catridge on a openshift server. I am looking to share this instance with another person and added the other user' s public key(id_rsa.pub). When the other person tries to ...
5
votes
2
answers
252
views
Git - How to commit a local repository to a subfolder of another local repository?
I have a Django project that I've started some time ago and I was hosting it at bitbucket. Now I need to host it at openshift, and the way to do that is that they provide you with a git repository and ...
5
votes
3
answers
6k
views
How to cleanup disk space on openshift when 'rhc tidy' has not enough disk space?
My quota on openshift has exceeded:
Filesystem blocks quota limit grace files quota limit grace
/dev/mapper/EBSStore01-user_home01
1048572 0 1048576 6890 ...
4
votes
3
answers
3k
views
Externalize configuration node js
I am gonna deploy a node js service in openshift and there are few properties such as database configs and app properties which I need to externalize.
I have java applications running as part of ...
4
votes
2
answers
667
views
Use a real git repo during an Openshift build?
When Openshift builds from a git repository, the source is cloned/exported in such a way that the clone is not a git repo, i.e. there's no .git directory. Anyone know how to change this behaviour to a ...
4
votes
3
answers
4k
views
How to keep file sync'd in OpenShift?
For OpenShift:
I created a test directory in ~ app-root/repo/data.
I also have locally 'myapp'/data directory. I can push up to OpenShift with git. My test files upload fine which I can check with ...
4
votes
1
answer
2k
views
openshift + wordpress + git
I read the other related questions but do not find a satisfying answer for a good git + wordpress + openshift workflow with the official openshift wordpress example. The plugin and theme directory are ...
4
votes
2
answers
3k
views
OpenShift action_hooks are not executable
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 ...
4
votes
1
answer
212
views
An exception occurred while creating local git repository -Openshift
we are developing the project and upload and run it in Openshift from past 4 months.
our project in JAVA platform and using phpmyadmin database of openshift and using eclipse kepler IDE and we ...
3
votes
1
answer
5k
views
issue with rhc setup and openshift
This is my first time trying out openshift or similar services and I have been running into problems with rhc setup.
I have installed Ruby, Git and rhc according to the documentation here, but when I ...
3
votes
1
answer
3k
views
Openshift redhat for Windows: rhc command error
I installed ruby and git for Windows as described in the OpenShift Windows client tools installation guide.
When I run an rhc command, I get this error:
C:/Ruby23/lib/ruby/gems/2.3.0/gems/commander-...
3
votes
2
answers
2k
views
Pushing changes to OpenShift
I'm following the tutorial below to push a change to my OpenShift application.
$ git clone <git_url> <directory_to_create>
# Within your project directory
# Commit your changes and push ...
3
votes
4
answers
3k
views
Run Grunt Build before OpenShift Build
My grunt build task creates a /dist/ which my project depends on. I don't want to include built file in my repository. I would rather use Jenkins to allow for continuous integration builds on my ...
3
votes
1
answer
1k
views
How do I specify a particular branch other than master in my OpenShift deployment?
My objective is to build a container image from git, but only from a specific branch. In order to do that, in my build.yaml, I have to specify the uri of the git branch:
spec:
output:
to:
...
3
votes
1
answer
2k
views
Create Openshift app using branch from existing repository (with `rhc create`)
The OpenShift web console allows to create a new app using a branch/tag from an existing remote repository which I do not know how to use through rhc create.
The relevant command line option --from-...
3
votes
3
answers
3k
views
How to resolve jbossews on openshift: Failed to execute: 'control restart'?
When I push my app at Openshift it was upload and final messages are
remote: Starting jbossews cartridge
remote: jbossews process failed to start
remote: Git Post-Receive Result: failure
remote: ...
3
votes
1
answer
2k
views
Confused about deplyoing application on openshift server using git
I am using openshift server to host my php application. I have added files to my server using sftp to ~/app-root/runtime/repo directory. The same files are accesible over the web. But when I git clone ...
3
votes
2
answers
2k
views
How can I composer update on OpenShift?
I am trying to use Slim on OpenShift with a free node. I can run composer update from the SSH sessions without any problem.
The only problem is every time I want to commit files through git I have ...
3
votes
1
answer
4k
views
Compilation error - package com.google.gson not found in Redhat "Openshift" application
I am devleoping application in openshift using Eclipse Luna which make use of gson jars.
I added gson jar files in the Web-inf/lib folder and it is not showing any error in eclipse.
But when I Push ...
3
votes
2
answers
545
views
Git Install Script How to enter shell command
This is more of a git related question than openshift.
When I push files to the git server using git, I see that the file permissions of my perl index.cgi file gets changed to 700 in my openshift repo....
3
votes
2
answers
477
views
How to get an earlier commit to display on openshift?
So I have my local repository, and I have an earlier commit which I want to revert my production site to. I can check it out and make it a branch and push it to openshift. The branch then shows in ...
3
votes
2
answers
840
views
404 Not Found error after commit changes on PHP application Openshift
I'm having problems with my PHP applications, I have created and deleted several of them because everytime I commit changes my application crushes and it shows the "404 Not Found" error.
I'm sure ...
3
votes
2
answers
470
views
OpenShift WordPress Theme Developer workflow
I create a application with Cartridges,
PHP 5.4
MySQL 5.5
phpMyAdmin 4.0
I commit my WP file, plugin and themes into GIT.
In my .gitignore, i added
wp-content/uploads
I did go through ...
3
votes
1
answer
1k
views
Openshift: After modifying code and Git push. Changes dont show
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-...
3
votes
1
answer
586
views
delete openshift git/objects folder
I am trying to clean up openshift git repo. objects folder in .git seems huge. I can ssh into application and execute the commands
git reflog expire --expire=now --all
git gc --prune=now --aggressive
...
3
votes
2
answers
3k
views
git clone : no address associated with name [duplicate]
I know there are many question asked about this but i found them not working in my case
As I'm not very known to git I'm facing a problem cloning a repo from openshift server.
I have my ssh URL for my ...
3
votes
1
answer
4k
views
Private Key authentication failed error in Eclipse for openshift
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 ...
3
votes
0
answers
1k
views
git clone in openshift fails "no user exists with uid"
I would like to test and build a Python module which has further dependencies in a gitlab runner (docker) on an openshift cluster. I get my Python module checked out from git as expected.
The ...
2
votes
2
answers
4k
views
How to pull all data from openshift via git
I created an wordpress application on openshift.com, after installing I downloaded and installed plugins and themes from admin panel.
Now when I try to clone the app on my local machine it only ...
2
votes
1
answer
2k
views
How can i connect openshift git repository to bitbucket
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
2
votes
2
answers
2k
views
OpenShift action hook deploy issues
I have a symfony 2 project I am trying to launch on OpenShift online. I created the directory as required and running symfony locally works perfect.
However, when I deploy to my OpenShift ...
2
votes
3
answers
175
views
Git total reset. Remove all files. Remove history
I have an existing repository (at ssh://[email protected]/~/git/dev.git/) which isn't cloned to my computer. It's too big and messy and I don't want to download it, I don't need it anymore. I want ...