devops

ghadi 2020-04-30T20:31:49.000900Z

Anyone in here using unprivileged docker container builders? If so, which?

bja 2022-01-10T18:22:45.000100Z

I use rules_docker and bazel to do this

bja 2022-01-10T18:24:57.000300Z

It doesn't actually use docker for anything unless you request it to run the container or upload it to the docker instance. When it's composing layers/container images, it does so, logically, as a collection of tarballs

bja 2022-01-10T18:25:31.000500Z

it also uses the google distroless containers by default, which are pretty small (smaller than alpine) and allow you to layer in debian packages if you need to

bja 2022-01-10T18:26:42.000700Z

I have my whole clojure project using bazel, but if you just wanted the devops portion, you could easily use rules_foreign_jvm to reuse a lein deploy or lein install jar/war and then have rules_docker layer that onto a java image

bja 2022-01-10T18:27:16.000900Z

rules_docker will automatically follow the dependencies set up by rules_jvm_external (under the hood, this is coursier, the same as SBT) and add the necessary classpath for you

bja 2022-01-10T18:27:34.001100Z

nice if you're already using bazel, but probably a lot to bite off if you don't have any experience with it

ghadi 2022-01-10T18:28:24.001300Z

thanks for the answer 🙂 , it's been 2 years

bja 2022-01-10T18:28:57.001500Z

oh, I just readded this slack to my new laptop and was looking at updated messages. Sorry, didn't notice the timestamp.

ghadi 2022-01-10T18:29:40.001700Z

haha, I appreciate it

bja 2022-01-10T18:30:53.001900Z

I left the clojure world and now primarily exist in the bazel and c++ worlds, but I managed to get clojure back into my org for some tooling and decided to rejoin the slack. need to be careful with timestamps given how long it's been.