-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolves #119: Upgrade CakePHP to 3.9.3 #115
Conversation
@hhorak Can you take a look here? |
@cuppett Taking a look at this, it makes more sense to me to move the part that introduces |
Agreed. I'll do that there and prune this one down to just the bump |
Done. Thanks! |
@pkubatrh I've rebased and picked up the next bump. Can we merge this in soon? |
OCP 3.11 might still ship with PHP 5.y imagestreams but they are no longer supported regardless; even 7.2 is about to go out of support (link). Not sure about OCP's thoughts about this (cc @gabemontero). |
short term, as I'm assuming you saw on the email thread @yselkowitz , cakephp is broke on OCP ... this PR in part is stemming from investigations @cuppett is doing to try to get it functional .... immediately, I'm good with whatever gets things functional longer term, I would assume removal of 7.2 or any other EOL images would be part of any of the typically per OCP release EOL efforts that SCL sorts out with @siamaksade |
@@ -50,7 +49,7 @@ | |||
"config": { | |||
"sort-packages": true, | |||
"platform": { | |||
"php": "7.0.10" | |||
"php": "7.2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the important bit to fix the composer resolution/download issue leading to the new failure.
Are the newer SCL PHP runtimes available on OCP 3.11 and should the catalog templates saved there be bumped as well? It breaks OCP 3.11 with its original default runtime of PHP 5.6 through 7.1 now. I don't think we can ever get the previous combination of bits back again. The ultimate culprit was this:
Explicitly included vendor libraries was removed with 157b4a8. Should I add a commit to include the vendored libraries going forward? |
we don't explicitly install them, no. An admin can of course always install the newer imagestreams+templates, there's no reason they shouldn't work. |
I've tested that with OCP4.4 and the updated app works fine when running with
results in:
It might be easily something with my cluster.. Anyway, did you test the attached templates? Do they work for you? |
hey @hhorak
technically speaking, these are the only 2 cakephp templates we ship with OCP: cakephp-mysql-example An example CakePHP application with a MySQL database. For more information ab... 20 (4 blank) 8 I've attached the build log. |
The build works for me too, but the app does not start after that. It either stops in the
@remicollet can you help here, please? |
Interesting. the pods are clean with my attempt ... I'll attach the pod listing and pod log |
For connection refused... you need to check the MySQL pod came up okay. I noticed on OCP4 or somewhere that the mysql:8.0-el (or something similar) tag isn't a thing in the openshift namespace, but mysql:8 is. |
This is the report on that: #94 |
imagestreamtags are going to vary release to release for OCP in the case of the cakephp templates, the mysql imagestreamtag appears to be hardcoded: https://github.com/openshift/cluster-samples-operator/blob/master/assets/operator/ocp-x86_64/cakephp/templates/cakephp-mysql-example.json#L422 that should probably be a template parameters to allow for using the latest version of a template on older OCP's like 4.4 |
agree, but in the meantime the template we shipped w/ a given OCP release should work w/ (reference) the imagestreamtags we shipped w/ that release. Assuming that is the case here, i'd expect we're good to go. |
I'll boot up a 4.4 cluster today and see if
works with or if I get errors similar to @hhorak |
ok it worked for me in 4.4
resulted in this list of pods:
And the |
Awesome, I totally forget about mysql streams, it works for me now as well:
So let's merge. |
Have refreshed the source tree to catch up to CakePHP 3.9. Various comment and structural changes in the base PHP files in addition to the composer updates.
While CakePHP 4.x is now available, it requires PHP 7.2. I'm not clear if that's a safe update for the master branch given the OCP 3.11 catalog still refers to this branch. CakePHP 3.9 is still PHP 5.6+ and is a safe upgrade.