Fork me on GitHub
#practicalli
<
2022-10-27
>
practicalli-johnny12:10:52

I pushed an article on using make for driving Clojure development, as we are required to use a Makefile at my current role. At first I though it was redundant, but its become very useful. I have https://github.com/practicalli/dotfiles/blob/main/Makefile, lint, format, docker stuff, repl of course and many other things all in one tool now, keeping things nice and tidy (and operations team happy more importantly) https://practical.li/blog/posts/make-clojure-tasks-simple-and-consistent/

Alex Miller (Clojure team)13:10:49

for a while, tools.build was looking to be make-like but we eventually decided that make already did all that :)

😁 1
practicalli-johnny12:10:06

As I am using Docker for deployment, I’ll also write up how I’ve been using https://gist.github.com/practicalli-john/b1f62e7ffe972e63eb4aa0fe283e518a to have a separate build and run-time images, keeping the run-time image as small as possible. With a bit of thought in the ordering of the commands, I’ve tried to maximise the use of Docker cache layers in the builder image, to keep the build process as quick as possible.