Skip to content
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

Use docker to build dashboard app. (as alternative) #5848

Merged
merged 6 commits into from
Aug 7, 2017

Conversation

benoitf
Copy link
Contributor

@benoitf benoitf commented Jul 31, 2017

What does this PR do?

Use docker to build dashboard app. (as alternative)
By using layer for package.json and bower.json file, it saves extra time to get npm or bower dependencies

Also, if dashboard files are not modified, the build is faster.

it targets as well issue #5127

By default :
"$ mvn clean install" --> use docker
"$ mvn clean install -Pnative" --> use native tools

as a side note, if all files are untouched, mvn clean install of dashboard is taking less than 10 seconds instead of like 5mn+

What issues does this PR fix or reference?

#5127

Changelog

Allow to build dashboard app with docker.

Release Notes

N/A

Docs PR

N/A

Change-Id: Ia65161b58e8ae70f7799500750a3d87687e34819
Signed-off-by: Florent BENOIT fbenoit@redhat.com

By using layer for package.json and bower.json file, it saves extra time to get npm or bower dependencies

Also, if dashboard files are not modified, the build is faster.

it targets as well 5127

By default :
 "$ mvn clean install" --> use docker
 "$ mvn clean install -Pnative" --> use native tools

Change-Id: Ia65161b58e8ae70f7799500750a3d87687e34819
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
@benoitf benoitf added kind/task Internal things, technical debt, and to-do tasks to be performed. status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. team/californication labels Jul 31, 2017
@benoitf benoitf self-assigned this Jul 31, 2017
@codenvy-ci
Copy link

Build # 3216 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/3216/ to view the results.

…json and bower.json file, it saves extra time to get npm or bower dependencies

Change-Id: I30a43ff4d9f6020feb7057f7f1958e51079c8549
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
@codenvy-ci
Copy link

@ashumilova ashumilova added this to the 5.16.0 milestone Aug 1, 2017
@ashumilova
Copy link
Contributor

@benoitf can you please mention the profile option here as well : https://github.com/eclipse/che/blob/master/dashboard/README.md

…json and bower.json file, it saves extra time to get npm or bower dependencies

Change-Id: Ie716ff7d34cb86f5c249ad33709b51aa6600bc24
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
@benoitf
Copy link
Contributor Author

benoitf commented Aug 3, 2017

@ashumilova done. is it ok now ?

…json and bower.json file, it saves extra time to get npm or bower dependencies

Change-Id: I7ccb4efbe1c78d57ccb9ec2fb8adacd406fc89cb
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
…json and bower.json file, it saves extra time to get npm or bower dependencies

Change-Id: I66a04d2b40725f6005733259ad887fc59cf92df0
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
…json and bower.json file, it saves extra time to get npm or bower dependencies

Change-Id: I9ee1af388d96a34abfdecd5cfa3d63261f4b946d
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
@codenvy-ci
Copy link

@riuvshin
Copy link
Contributor

riuvshin commented Aug 7, 2017

As I understand we wanted use native tools by default and profile for docker. But I'm +1 on this

@benoitf
Copy link
Contributor Author

benoitf commented Aug 7, 2017

@riuvshin yes but after thinking a log around this I was thinking that we have more ppl having docker than all the other required tools. (this is why I used docker by default)
Also it should be a lot faster using docker than native (as we reuse docker layers)

@benoitf benoitf merged commit 8fcd5dc into master Aug 7, 2017
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Aug 7, 2017
@benoitf benoitf deleted the use-docker-to-build-dashboard branch August 7, 2017 12:38
dmytro-ndp pushed a commit to dmytro-ndp/che that referenced this pull request Aug 16, 2017
* Use docker to build dashboard app.
By using layer for package.json and bower.json file, it saves extra time to get npm or bower dependencies

Also, if dashboard files are not modified, the build is faster.

it targets as well 5127

By default :
 "$ mvn clean install" --> use docker
 "$ mvn clean install -Pnative" --> use native tools

Change-Id: Ia65161b58e8ae70f7799500750a3d87687e34819
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
* Use docker to build dashboard app.
By using layer for package.json and bower.json file, it saves extra time to get npm or bower dependencies

Also, if dashboard files are not modified, the build is faster.

it targets as well 5127

By default :
 "$ mvn clean install" --> use docker
 "$ mvn clean install -Pnative" --> use native tools

Change-Id: Ia65161b58e8ae70f7799500750a3d87687e34819
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
skabashnyuk pushed a commit that referenced this pull request Jan 3, 2020
* Use docker to build dashboard app.
By using layer for package.json and bower.json file, it saves extra time to get npm or bower dependencies

Also, if dashboard files are not modified, the build is faster.

it targets as well 5127

By default :
 "$ mvn clean install" --> use docker
 "$ mvn clean install -Pnative" --> use native tools

Change-Id: Ia65161b58e8ae70f7799500750a3d87687e34819
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants