Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Equivalent of Google's JIB for Node.JS?

Is there one equivalent of Google's JIB or BuildPacks for Node.JS ?

It is my understanding that JIB allows to build OCI container images from within the project's build tool like Gradle or Maven, as a developer we only have to include a plugin into the build and are able to package up the application into a container and having JIB implement all the best practices of packing up a Java application into container with no questions asked.

I have search around but have not found something equivalent for the Node.JS ecosystem. It should be possible just into a node developer time dependency and it take care on packaging up my javascript/typescript Express.js for example app into a docker container or OCI image.

Thank you, Oscar

like image 223
Luis Trigueiros Avatar asked May 04 '20 17:05

Luis Trigueiros


1 Answers

For posterity, I'll list some NodeJS-native Docker image creation packages (these usually can be added to your project's package.json). In no particular order:

  • nodejs-container-image-builder - container registry client and image builder with no dependency on docker (by Google)
  • Dockta - A Docker image builder for researchers
  • EZDocker - build docker images in Javascript

I did try Dockta and it has SUPER simple one-liner docker file/image build (either a simple package.json script or direct command line), it works nicely.

like image 124
Big Rich Avatar answered Oct 30 '22 22:10

Big Rich