docker

Chris 2020-01-25T11:29:12.003Z

Does somebody know a way to install all lein dependencies? I’m trying to run my clojure app in a docker container and I’m trying to cache the installation of all dependencies. I’m using lein deps to download all dependencies, however this installs only the entries from :dependencies and nothing from :plugins which will be installed when starting the app …

Chris 2020-01-25T11:30:21.003600Z

I need the plugins so I can use lein ring server-headless in docker-compose for development so I get the code reloading

lispyclouds 2020-01-25T18:23:25.004300Z

@christian.paling maybe add the plugin to a dev profile and use a prod profile to deploy it?

lispyclouds 2020-01-25T18:23:46.004700Z

lein deps should work with a profile

Chris 2020-01-25T20:04:12.005100Z

But then the plugin would still not be installed right ?

Chris 2020-01-25T20:05:05.006Z

Basically what I’m doing is: Dockerfile --> builds an uberjar which I can then deploy docker-compose.yml --> uses lein ring server for comfortable development

lispyclouds 2020-01-25T20:52:17.008300Z

if i understand it correctly you would have a dockerfile with lein ring server-headless as the entrypoint? and this would be used as a service in your compose file? this means you need another dockerfile for development?