NVIDIA / hpc-container-maker

HPC Container Maker
Apache License 2.0
458 stars 94 forks source link

Error while using "node:latest" base image on HPCCM #469

Closed borin98 closed 1 year ago

borin98 commented 1 year ago

Hello guys !. I'm using hpccm to build a Dockerfile with node:latest and I got the following Warning

WARNING: Unable to determine the Linux distribution, defaulting to Ubuntu

Looking into the function set_linux_distro It's seems that function doesn't include Node into the package. It's possible to open a pull request to implement a Node in this function ?

samcmill commented 1 year ago

HPCCM uses the image name to determine the Linux distribution. The baseimage building block has the _distro option to override the auto-detection capability, or to use when the autodetection can't figure it out.

The node:latest image is based on Debian 12. The closest distro that HPCCM supports is probably Ubuntu 22.04.

Stage0 += baseimage(image='node:latest', _distro='ubuntu22')
borin98 commented 1 year ago

Thanks for the help @samcmill! Your comment help's me to create a dockerfile with node. I'll close this issue