Thanks Brian, First, Fedora & CentOS versions of this container are in the works and will be available soon, if they're not already. Sorry, I don't track the community side as closely as I'd like to these days due to bandwidth.
I found similar results rebuilding our nodejs containers using rhel7-atomic as the base; however, these benefits aren't shared by a lot of our containers. This is largely due to how our package maintainers declare dependencies. Installing packages like httpd & mariadb, don't typically need systemd running in the container, yet they're deps so systemd gets pulled in whether we want it or not. I looked at mysql & mariadb images and they shrink by about ~10 MB. I was really hoping that the base s2i image would shrink considerably, but unfortunately with all the deps we pull in, that's just not the case. I'm going to look at some of the xPaaS images and see if there's a tangible benefit there as well. ...but I agree node is a great candidate here, so is java & golang. On Thu, Mar 16, 2017 at 1:01 PM, Brian Gollaher <[email protected]> wrote: > Adding Ben Breard as this will be interesting to him. > > On 03/16/2017 12:37 PM, Lance Ball wrote: > > Hi all > > You may have seen recently that a few of us have started to maintain some > up-to-the-minute Node.js builder images for Docker and Openshift [1]. At > the moment, we have up to date images for Node 4,5,6 and 7. However, these > are all running on CentOS. > > Recently, based on an email thread in @microservices, I started looking > into the image sizes for what we are producing, and was pretty amazed to > see ours at about 485MB. Not to be dissuaded, I decided that I would see > what effort was required to create Node.js 4,5,6 and 7 builder images on > rhel7-atomic. Without too much effort, I managed to create images based on > this that were much smaller - about 140MB. Great news! > > However, this led me to a couple of questions that I would like to put > forward for discussion, and ultimately follow up with one or more issues in > https://issues.jboss.org/projects/NODE. > > Based on the evidence I have seen, there is a lot of interest in a smaller > footprint for base/builder images. A rhel7-atomic builder image (not > specific to Node.js) that could be further added to by projects like ours, > would be very useful. A base builder image currently exists for RHEL, > Fedora and CentOS. These base images make downstream projects such as ours > much easier to implement because all of the OpenShift specific bits are > already taken care of (e.g. STI_SCRIPTS_URL, etc). > > I was wondering if there is any current effort to produce a similar base > image for rhel7-atomic. If not, is this the kind of activity that would be > left to the community, or are there plans in the works within Red Hat to > make this happen? > > I also think that, in addition to the current OpenShift offerings for > Node.js on RHEL and CentOS, we should be providing a larger matrix of > options. Is there any reason not to pursue community versions of Node.js > builder images for the following combination of OS/Node? > > RHEL -> Node 4, 5, 6, 7 > rhel7-atomic -> Node 4, 5, 6, 7 > Fedora -> Node 4, 5, 6, 7 > CentOS -> Node 4, 5, 6, 7 > > I understand that SCL-provided, supported images for RHEL already exist > for Node.js v4.x and soon to be Node.js v6.x. As you probably know, some of > us are actively working towards a solution that would allow these supported > images to achieve greater turnaround time, and maintain version parity with > all current Node.js releases. > > Would the addition of community provided rhel7-atomic, fedora and perhaps > even rhel images be welcomed? > > Lance > > > [1] github.com/bucharest-gold/origin-s2i-nodejs > > > > _______________________________________________ > Container-tools mailing > [email protected]https://www.redhat.com/mailman/listinfo/container-tools > > > -- > Brian Gollaher > Red Hat Platform Product Management > Phone: 978 392-3173 <(978)%20392-3173> > Cell: 508 740-6549 <(508)%20740-6549>[email protected] > > -- Ben Breard Sr Technology Product Manager - Linux Containers Mobile: 972-816-9081
_______________________________________________ Container-tools mailing list [email protected] https://www.redhat.com/mailman/listinfo/container-tools
