Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We need to make sure that the upgrade for existed installation from postgresql 9.6 to 10 is working.
Have you tested it?
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.
does it work with
docker.io/postgres:9.6.17-alpine
ordocker.io/postgres:9.6.17
(debian based)(no bump of the postgres version) ?
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.
@skabashnyuk I must confess that this use case skipped from my mind. So if updating postgresql version is causing other overheads, I'll revert the changes for
9.6.17
as @benoitf has suggested.@benoitf I am able to build
che-postgres
docker image using both variants you suggested i.e.docker.io/postgres:9.6.17-alpine
anddocker.io/postgres:9.6.17
. Let me know your preference for the base image. Will update the PR with same.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.
@shahidhs-ibm there are quite a few scripts that make PostgreSQL installation possible https://github.com/eclipse/che/tree/master/dockerfiles/postgres can you check if they compatible with
docker.io/postgres:9.6.17
?CC @tolusha
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.
@skabashnyuk The
che-postgres
docker image built withdocker.io/postgres:9.6.17-alpine
is not compatible with the scripts. The centos Vs alpine postgres images are built with different methodology which makes them incompatible.This best possible approach is to extend
postgresql-96
docker image support to s390x. We have raised an issue for this.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.
@tolusha @nickboldt @benoitf Your updates?
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.
The best way if we find (build ?)
centos/postgresql-96-centos7
image fors390x
platformOtherwise we have to perform a lot of tests to be sure the previous deployments work well.
BTW codeready uses
registry.redhat.io/rhscl/postgresql-96-rhel7:1-47
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.
@tolusha Thanks for the update. Yes the best way will be to get the image from centos but we haven't got any response from community on issue we raised for code contribution. The
registry.redhat.io/rhscl/postgresql-96-rhel7:1-47
which is used by CRW is unfortunately not multi-arch, so we don't have many options left other than usingregistry.redhat.io/rhel8/postgresql-96
or adding multi-arch support tocentos/postgresql-96-centos7
.@nickboldt Could you please provide your inputs on using RH subscription image for postgres? Will it be OK?
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.
@nickboldt Any update?
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.
Note that
registry.redhat.io/rhscl/postgresql-96-rhel7:1-47
is single arch, amd64.We switched to
registry.redhat.io/rhel8/postgresql-96:1
to get support for Z and Power (it also includes arm).For future reference, you can check the arches in a given image like this:
I don't believe we can (yet) use authenticated RHEC images for Che builds. See #18292 (comment) for ongoing discussion.