docker

2018-10-18T18:38:18.000100Z

do people building docker images for clojure do something to prevent downloading all dependencies on every build?

2018-10-18T18:38:39.000200Z

download common deps into a base image to use periodically?

mpenet 2018-10-18T18:44:20.000100Z

.m2 as a volume here

2018-10-18T18:44:57.000100Z

hmm that might solve my private repository issue as well

mpenet 2018-10-18T18:45:00.000100Z

That's for dev at least

mpenet 2018-10-18T18:45:23.000100Z

Yeah, I had the same concern

2018-10-18T18:46:25.000100Z

for prod you just redownload for each build?

mpenet 2018-10-18T18:46:54.000100Z

No we do uberjars

2018-10-18T18:47:25.000200Z

you build the uberjar outside the dockerfile and just copy it in?

2018-10-18T18:47:45.000100Z

or you don't use docker at all you mean?

mpenet 2018-10-18T18:47:58.000100Z

We dont run in containers in prod

2018-10-18T18:48:06.000200Z

gotcha

mpenet 2018-10-18T18:48:24.000100Z

If we would I guess copying the uberjar seem like a good solution anyway

2018-10-18T18:49:24.000200Z

yeah i guess i'm building on circleci so i have a consistent build environment, building an uberjar and copying it into a docker image isn't terrible

mpenet 2018-10-18T18:49:35.000100Z

Downloading the deps from prod is not good imho, ex you might need priv repo credentials etc

mpenet 2018-10-18T18:49:58.000100Z

Sounds good yep

2018-10-18T18:50:36.000100Z

right that's what i'm trying to solve, i was going to just build the uberjar inside the docker file but for some insane reason passing anything sensitive at build time is like impossible in docker and also not redownloading all of .m2 would be nice