Docker-node: Add qemu to this docker image

Created on 1 Sep 2017  路  6Comments  路  Source: nodejs/docker-node

What are your thoughts on adding qemu to this image?
It would be useful for e.g. for cross-building arm docker images on x86 machines using _multiarch/qemu-user-static:register_ .

question

Most helpful comment

馃憥 from me

As a general rule we try to avoid adding new packages to the images to keep the size down.

All 6 comments

How does it help if we bundle QEMU? Seems like a niche requirement, and it's pretty easy to add yourself of you want it (I think? Never tried, to be honest)

For crossbuilding to work it is required to have QEMU in the base image. It would be more convenient if one would not have to rebuild the node base image with QEMU each time a new update came out.
On the other hand not everyone need QEMU in their image. Wanted to find out other peoples take on this.

馃憥 from me

As a general rule we try to avoid adding new packages to the images to keep the size down.

Just a note that you can run other architecture images using "Docker for Mac/Windows" which automatically uses qemu user mode emulation (nothing required to be installed in the container), but qemu often has problems:

For crossbuilding to work it is required to have QEMU in the base image. It would be more convenient if one would not have to rebuild the node base image with QEMU each time a new update came out.

Seems like the best solution would be for someone to create a new base image called node-qemu or whatever, and maybe try to get an automated travis build + push to Dockerhub whenever new node images come out.

Closing as we will not be making this change.

If someone:tm: does what @gibfahn suggest above me, we can link to it from our readme, though.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kmleow picture kmleow  路  5Comments

retrohacker picture retrohacker  路  3Comments

iamwillbar picture iamwillbar  路  4Comments

dionysiusmarquis picture dionysiusmarquis  路  3Comments

danbev picture danbev  路  3Comments