kabanero-io / kabanero-pipelines

Default Kabanero Pipelines. This repo will be archived soon.
Apache License 2.0
14 stars 18 forks source link

Documenting the performance issue details for nodejs, nodejs-express stacks realted to Dockerfile during creation of stacks #231

Open aadeshpa opened 4 years ago

aadeshpa commented 4 years ago

Reference Issue: https://github.com/kabanero-io/kabanero-pipelines/issues/121

We need to mention that current Dockerfile used in Nodejs and Nodejs-express stack had good practice COPY command to copy the app project folders to the image, however since pipelines are using appsody-buildah containers which has old buildah version 1.9.0 we need to make tweak in COPY commands of Dockerfile.

So we need to identify two documentation places for the details :

Firstly, the place where the users see the document for creation of the stacks and add this issue details there explaining them the current workaround for any new stacks Dockerfile for having good performance, until kabanero pipelines uses old appsody-buildah container which has old buildah version 1.9.0 and why we can’t move to new version of it due to RHEL OS version limitations.

Secondly , again mention the same problem in our pipelines troubleshooting guide and point the link of details to the first location identified.

aadeshpa commented 4 years ago

Document 1 content draft:

Performance issue in the stack build process.

COPY . /project

Workaround Dockerfile Copy commands:

COPY package*.json /project/
COPY *.js /project/
COPY user-app /project/user-app
aadeshpa commented 4 years ago

Document 2 : Pipelines Troubleshooting guide content draft:

Performance issue in the build step of the pipeline.

If the pipelinerun for a particular stack is taking lot of time in the build step, this could be due the performance bug issue in the stack creation process. Please follow the link [Performance issue in the stack build process](link to Document 1 guide) to troubleshoot the issue and re-create your stack with the workaround. After the workaround return back and try to run the pipeline again for that stack.

kilnerm commented 4 years ago

@aadeshpa Your draft for document 1 need to be more generic. There should be no mention of pipelines as an Appsody stack creator is not necessarily going to have any.

By default Appsody will build stacks using docker so this is an edge case that many stack developers won't be concerned with, perhaps the more important audience is that of the certified stack developers. I would suggest an appropriate set of guidelines and certification steps are put in place as these stacks are created and integrated into Kabanero / ICP4A.