Fork me on GitHub
#polylith
<
2023-09-19
>
Damian Sinczak08:09:35

Hi, i need to build a docker image that runs integration tests. In order to do so I need to build a docker image (on CI) that contains all the libraries. Problem is that I do not know how to force polylith to build the project with all libraries (including transitive ones). I tried clojure -M:poly:test:integration-tests libs but it does not download transitive dependencies.

furkan3ayraktar18:09:58

I don’t know what you mean. Can you explain what are you trying further? Are you trying to build the poly tool from the source? Or, are you trying to build your project using the poly tool? Polylith does not help with building artefacts directly, instead, helps creating a classpath so you can use other build tools to build artefacts.

jasonjckn05:09:54

aren’t integration tests typically intended to run in a distributed system, to mimic production environment, so you would spin up multiple docker instances for each of your projects if you do it that way you just reuse your existing project docker images instead of trying to generate this uber docker image . e.g. https://mohammed-abouzahr.medium.com/integration-test-starter-with-ci-5037410817ee