as one (sometimes failing) step of our pipeline we
- setup environment via installation of docker which runs 3 containers through own
docker-compose
. Unfortunately we could not figure out how to impose any memory limits on individual containers in docker-compose v3 config. run tests in
sbt
withSBT_OPTS="-Xmx1500m"
and every second to third time step is failing with OOMdefinitions: services: docker: memory: 1024
Explanation on the memory usage is not clear on this case.
Could somebody please explain what's going on with the memory allocation to containers, docker host, and step env?
Interesting is that running the same tests, same containers for multiple times usually gives different results. Understandable that real load on the physical server changes over time and running times can differ - but memory?
Puzzled...