Hey - I'm a bazel noob, so apologies for the question, but I'm trying to produce a container image with my rails project using these rules and I'm stuck.
I have a ruby_binary package in my BUILD (largely cribbed from the examples/simple_rails_api dir) which builds successfully. But I'm then coming up dry getting that into a runnable container. I've looked at py_binary for inspiration, but there seems to be a py_image (https://github.com/bazelbuild/rules_docker#py_image) rules_docker rule that does the work for that. How can I go about doing it with container_layer and container_image rules? Is the idea that the ruby_binary produces a binary that requires no other deps?
Hey - I'm a bazel noob, so apologies for the question, but I'm trying to produce a container image with my rails project using these rules and I'm stuck.
I have a
ruby_binarypackage in myBUILD(largely cribbed from theexamples/simple_rails_apidir) which builds successfully. But I'm then coming up dry getting that into a runnable container. I've looked atpy_binaryfor inspiration, but there seems to be apy_image(https://github.com/bazelbuild/rules_docker#py_image)rules_dockerrule that does the work for that. How can I go about doing it withcontainer_layerandcontainer_imagerules? Is the idea that theruby_binaryproduces a binary that requires no other deps?