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

Cache node modules before rebuild Theia with selected plugins. #9096

Merged

Conversation

AndrienkoAleksandr
Copy link
Contributor

What does this PR do?

Cash node modules before rebuild Theia with selected plugins.
Should use to speed build.

Signed-off-by: Oleksandr Andriienko oandriie@redhat.com

…use to speed build.

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
@AndrienkoAleksandr AndrienkoAleksandr requested review from evidolob and a user March 14, 2018 21:32
@benoitf benoitf changed the title Cash node modules before rebuild Theia with selected plugins. Cache node modules before rebuild Theia with selected plugins. Mar 14, 2018
@@ -14,7 +14,8 @@ const cp = require("child_process");
const theiaRoot = '/home/theia';
const theiaPath = theiaRoot + '/package.json';

const defaultConfig = require('/home/default/theia/package.json');
const defaultTheia = `/home/default/theia`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe append Path at the end of this new variable ?

@@ -22,6 +22,8 @@ RUN yarn && \
cd /home/default/theia && \
yarn && \
yarn theia build
RUN ln -sf /home/default/theia/node_modules /home/theia/node_modules
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you merge these two run instructions with the previous RUN instruction (adding &&)

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
@AndrienkoAleksandr AndrienkoAleksandr merged commit 22262e8 into eclipse-che:master Mar 15, 2018
@AndrienkoAleksandr AndrienkoAleksandr deleted the cashNodeModules branch March 15, 2018 10:23
@benoitf benoitf added this to the 6.3.0 milestone Mar 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants