mleap icon indicating copy to clipboard operation
mleap copied to clipboard

Dockerfile for building mleap-serving?

Open njhill opened this issue 5 years ago • 2 comments

Hi, we would like to build mleap-serving images using a different base image (RedHat UBI-based rather than Ubuntu), and so were wondering if the Dockerfile and any other build logic you use to produce those currently published to docker hub could be included in the repo?

If not, maybe you could confirm that the advice given in this related previous issue is still correct: https://github.com/combust/mleap/issues/134

Thanks in advance!

njhill avatar Feb 05 '21 18:02 njhill

Hey @njhill ,

Thanks for your question. Currently, we use this DockerConfig (https://github.com/combust/mleap/blob/master/project/DockerConfig.scala) and the Scala/SBT Docker Plugin (https://github.com/combust/mleap/blob/master/mleap-serving/build.sbt#L3) to publish the MLeap Docker images.

There are two possible ways:

  • you could check out the MLeap code, update the current base image, build the MLeap image and publish it to your internal Docker repo
  • you could see if we can have more than one base image defined for the sbt docker plugin, or if we can update the build to run the plugin for each of the base images.

Hope this makes sense, let me know if you need help with the second approach, or if you run into issues with the first.

ancasarb avatar Feb 25 '21 13:02 ancasarb

Thanks very much for those details @ancasarb

njhill avatar Feb 25 '21 20:02 njhill