openshift-cartridge | The Ceylon OpenShift cartridge | Cloud library
kandi X-RAY | openshift-cartridge Summary
kandi X-RAY | openshift-cartridge Summary
All information is located in the template's README.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of openshift-cartridge
openshift-cartridge Key Features
openshift-cartridge Examples and Code Snippets
Community Discussions
Trending Discussions on openshift-cartridge
QUESTION
I currently have a legacy application built in php 5.4, that I'm trying to migrate to openshift.
It seems however, that php 5.4 is not available as a default container image in openshift 3.5. Here's a part of my buildconfig file.
...ANSWER
Answered 2017-May-31 at 10:15As mentioned in the comments by Graham the Software Collections Library do not provide a container with PHP 5.4, however there is nothing to stop you creating your own image and deploying that to your OpenShift environment.
Create an image which installs PHP 5.4, example Dockerfile:
QUESTION
so I have two free gears on OpenShift.
One is a PHP with MySql 5.7 from:
https://github.com/icflorescu/openshift-cartridge-mysql
To which I can remote login from my PC without any problem by SSH tunnel.
Now on the second gear I wanted to create Spring Boot app that would connect to DB on the first gear. Using env | grep MYSQL
on first gear I receive:
OPENSHIFT_MYSQL_DB_PORT=13306
OPENSHIFT_MYSQL_DB_HOST=127.10.104.130
So this + my logging data was put into Spring application.properties
, after successfull build Spring crashed at data pool creation because it could not connect to database so I SSHed into second hear and tried accessing MySQL instance from first gear via:
mysql -u root -h 127.10.104.130 -P 13306
but I get error message:
Can not connect to MySQL Server on '127.10.104.130' (113)
After that I tried:
mysql -u root -h myAppName-domain.rhcloud.com -P 13306
which results in longer time of connection but ultimatelly failling with:
Can not connect to MySQL Server on 'myAppName-domain.rhcloud.com' (110)
And I can easly ping gear#1 from gear#2 so I am confused - do I need some extra sql config or firewall settings? I am also doing tail on mysql logs and nothing is showing up like connection is not even made.
ANSWER
Answered 2017-Mar-31 at 16:00I'm the author of the openshift-cartridge-mysql mentioned above.
It's been a while since I've published that cartridge, but if I remember correctly, the setup script is quite unassuming and there's nothing created by default, so you have to create your own users, databases and explicitly grant the appropriate privileges.
Connect from your PC either by ssh
or by Workbench over ssh tunnel, create your user and database, then execute something like:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install openshift-cartridge
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page