-
Notifications
You must be signed in to change notification settings - Fork 51
Add new nodejs-postgres stack #1086
Add new nodejs-postgres stack #1086
Conversation
In order to run multi-container booster in che (https://github.com/nodeshift-starters/nodejs-rest-http-crud) we need to add a new stack which has 2 machines, first one is the dev machine with node and the second machine has the postgres database. Signed-off-by: Ibrahim Jarif <[email protected]>
@jarifibrahim The che server [build 814] has been successfully deployed. |
The nodejs stack is failing with
How can I fix these permissions? |
@jarifibrahim could you switch to |
Done. See ba45c6f |
@jarifibrahim The che server [build 815] has been successfully deployed. |
@jarifibrahim The che server [build 816] failed.If the build or deployment fails, the artifacts will not be present. Don't panic, just grab a towel. |
[test] |
@ibuziuk I've changed the docker image for the Postgres and that's why the build is failing. |
@jarifibrahim The che server [build 817] failed.If the build or deployment fails, the artifacts will not be present. Don't panic, just grab a towel. |
[test] |
@jarifibrahim I do not think it is related |
@jarifibrahim The che server [build 818] has been successfully deployed. |
I see the same error even after changing the Postgres docker image. |
The same stack runs fine on Che running via minishift locally. |
@jarifibrahim could you please point to the dockerfile of the postgres image used in the stack ? |
For image: |
What else can we do to get Postgres container running? EDIT - |
Does this image work EDIT: |
According to openshift/origin#16211 (comment) we need to mount the volume on the specific path. @ibuziuk Is there a way to do this? I tried adding a volume via UI and updating the recipe but it doesn't seem to work. |
I've raised sclorg/postgresql-container#301 to remove volume from the centos-postgresql image. |
@jarifibrahim The che server [build 851] has been successfully deployed. |
I managed to fix the volume issue using the correct PV claim dc8659f . |
@jarifibrahim The che server [build 878] has been successfully deployed. |
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.
Thanks @jarifibrahim! I've tested the stack and it mostly works great on che.openshift.io, there is just one small change that needs to be made (see below).
On che.openshift.io, using this stack, I see volumemount claim-che-workspace, subpath workspaceakco96ccz55a4c6e/postgresdata → /var/lib/pgsql/data
on the database container, which is perfect :)
@jarifibrahim The che server [build 885] has been successfully deployed. |
Thank you so much @amisevsk. That fix worked perfectly :) |
@jarifibrahim The che server [build 886] failed.If the build or deployment fails, the artifacts will not be present. Don't panic, just grab a towel. |
@jarifibrahim The che server [build 887] failed.If the build or deployment fails, the artifacts will not be present. Don't panic, just grab a towel. |
"protocol": "http" | ||
} | ||
}, | ||
"volumes": {}, |
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.
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.
no, project is mounted by default. No need to explicitly specify if
[test] |
@jarifibrahim The che server [build 888] failed.If the build or deployment fails, the artifacts will not be present. Don't panic, just grab a towel. |
[test] |
@jarifibrahim The che server [build 890] failed.If the build or deployment fails, the artifacts will not be present. Don't panic, just grab a towel. |
[test] |
@jarifibrahim The che server [build 891] failed.If the build or deployment fails, the artifacts will not be present. Don't panic, just grab a towel. |
@rhopp @ScrewTSW @Katka92 seems to be failing with:
Any ideas what is the reason ? |
I think that the problem is in a way obtaining active token for test user. I'll have a look and try to fix it ASAP. |
[test] |
@jarifibrahim The che server [build 901] has been successfully deployed. |
What does this PR do?
In order to run multi-container booster in che (https://github.com/nodeshift-starters/nodejs-rest-http-crud) we need to add a new stack which has 2 machines, first one is the dev machine with node and the second machine has the postgres database.
What issues does this PR fix or reference?
N/A
How have you tested this PR?
Yes. I have tested this stack locally and it works as expected.