- Notifications
You must be signed in to change notification settings - Fork 380
Docker support to run the project #332
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
Conversation
| Referring to #331 |
| @dylangrafmyre Can you please review this one. |
| @sub2u Could you please link to your Reviewed 2 of 2 files at r1. Comments from Reviewable |
| @dylangrafmyre You can find the docker in docker hub |
| @sub2u there is no Review status: Comments from Reviewable |
| @dylangrafmyre Docker file is in github repo please review in https://github.com/sub2u/ruby-2.3.1-node-6.8.0 |
Dockerfile Outdated
| FROM sub2u/ruby-2.3.1-node-6.8.0 | ||
| MAINTAINER sub2u | ||
| | ||
| COPY ./ app/ |
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.
Wouldn't it be more convenient to mount directory instead of coping over all the things inside container?
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.
Sure, we can use ADD, i will update it
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.
I was meaning not ADD, but volumes. Copying process takes time and in development copy files on change is kinda pricy. If volume is used, then it reads the files directly from the mounted volume, so it should be faster.
| @sub2u IMO you have too many layers in https://github.com/sub2u/ruby-2.3.1-node-6.8.0 Your stuff will be outdated if you will change something below |
| @alexfedoseev we can use force update, in |
If it acts like this then I believe there's something wrong is going on w/ this setup as unchanged layer must be taken from the cache: https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#/minimize-the-number-of-layers |
| @sub2u Thank you for taking the time to work on this. For this project I think it would be best to have a project Dockerfile that we maintained off of the the Ruby 2.3.1-alpine base image or similar. I do not think it is best to rely on a maintained image by contributors to this project. @alexfedoseev brings up very good points about image size and minimizing image layers. I would be more than happy to work on getting the right Dockerfile config and build in place with you that meets the needs of this tutorial. Reviewed 1 of 1 files at r2. Comments from Reviewable |
| Sure @dylangrafmyre i will update the docker file |
| Yes agreed Image size should be less, It contain All Ruby nodejs, and other libraries required for project it is 366 MB size.
|
| @sub2u Any update? |
| @sub2u Anything I can do to help? |

This change is