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

Upgrade Node10 #3199

Merged
merged 10 commits into from
Dec 23, 2018
Merged

Upgrade Node10 #3199

merged 10 commits into from
Dec 23, 2018

Conversation

koooge
Copy link
Contributor

@koooge koooge commented Dec 17, 2018

redash/base is using node 6 now, but it will be EOL in 2019/4 (https://github.com/nodejs/Release#readme).

Signed-off-by: koooge <koooooge@gmail.com>
Signed-off-by: koooge <koooooge@gmail.com>
@koooge koooge changed the title Node10 wip Node10 Dec 17, 2018
Copy link
Member

@arikfr arikfr left a comment

Choose a reason for hiding this comment

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

Switching to multi from build is something we wanted to do for quite some time, so thank you for taking a stab at this!

I have a few comments though.

Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
Signed-off-by: koooge <koooooge@gmail.com>
Signed-off-by: koooge <koooooge@gmail.com>
@koooge koooge changed the title wip Node10 Upgrade Node10 Dec 18, 2018
Copy link
Member

@arikfr arikfr left a comment

Choose a reason for hiding this comment

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

Thanks again for your effort here! A few more comments :)

Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Signed-off-by: koooge <koooooge@gmail.com>
@koooge koooge changed the title Upgrade Node10 wip Upgrade Node10 Dec 18, 2018
Signed-off-by: koooge <koooooge@gmail.com>
Signed-off-by: koooge <koooooge@gmail.com>
@koooge koooge changed the title wip Upgrade Node10 Upgrade Node10 Dec 19, 2018
Copy link
Member

@arikfr arikfr left a comment

Choose a reason for hiding this comment

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

Why did you remove the bundle step from everywhere?

@koooge
Copy link
Contributor Author

koooge commented Dec 19, 2018

sorry, I misunderstood. You mean it is okay to delete npm run bundle in Dockerfile only?

@arikfr
Copy link
Member

arikfr commented Dec 19, 2018

@koooge yes, I meant to remove it in the Dockerfile only.

This reverts commit 14b7835.
Signed-off-by: koooge <koooooge@gmail.com>
@@ -12,6 +12,7 @@ services:
- "5000:5000"
volumes:
- ".:/app"
- /app/client/dist
Copy link
Member

Choose a reason for hiding this comment

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

What's this for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it needs for /dist created by npm run build. Please refer to The node_modules Volume Trick chapter on https://jdlm.info/articles/2016/03/06/lessons-building-node-app-docker.html

Copy link
Member

Choose a reason for hiding this comment

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

The way this docker-compose.yml file was designed to work is with the user running npm related stuff on the host, so client/dist will be part of the mounted volume.

See: https://redash.io/help/open-source/dev-guide/docker for details.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

well.. we seem to need more hack for this point 🤔

Copy link
Contributor Author

@koooge koooge Dec 20, 2018

Choose a reason for hiding this comment

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

Wait, I just realized /dist created by npm run build in Dockerfile will be overwritten by volume .:/app. So, npm run build is not necessary under development, right? (I understood this build is for redash/redash image!)

Copy link
Member

Choose a reason for hiding this comment

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

So, npm run build is not necessary under development, right?

Correct.

This reverts commit bffc5c9.
@arikfr arikfr merged commit 64783b7 into getredash:master Dec 23, 2018
@koooge koooge deleted the node10 branch December 23, 2018 14:15
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