docker

gklijs 2017-11-28T07:09:27.000033Z

Since nobody has reacted, The website I’m building now is (fro now) contained in a single docker container. I just make a fat jar, and use a java image. I don’t really see the point in using a clojure image unless you want to use a repl inside your container or something.

romain 2017-11-28T12:02:55.000208Z

@gklijs thanks for your feedback.

romain 2017-11-28T12:03:53.000302Z

What I was thinking is to use a clojure image to have the same environment on dev and prod

gklijs 2017-11-28T12:07:45.000357Z

could be, but on dev you most likely have some repl open and/or reloading which you don’t have in prod anyway. In my experience development is often a lot easier without a container. But it depends, if you have some other services to connect to it might be easier to have a docker compose for dev and prod, where in the dev version you do have some reloading, but have all your connection configured the same way as on prod.

romain 2017-11-28T12:20:47.000191Z

I worked on a javascript where we use docker. The advantage is that you just pull the image, it deploys all stuff you need (db...) and you have the same environment than production

romain 2017-11-28T12:21:51.000304Z

and in a config file you have the tools & var different for each environment