gchq / stroom-resources

Applications and resources on which Stroom services depend
Apache License 2.0
5 stars 11 forks source link

map /tmp to something inside our docker containers #98

Open stroomdev10 opened 3 years ago

stroomdev10 commented 3 years ago

One thing I have just noticed is that /tmp in our containers is not a volume and anything added in there will just be adding layers to the container. We prob ought to be mounting /tmp as tmpfs for all our containers, possibly with a size limit, so it is ram backed, volatile and won't increase the size of the container.

at055612 commented 3 years ago

See https://docs.docker.com/compose/compose-file/compose-file-v2/#tmpfs https://docs.docker.com/storage/tmpfs/ Need to consider whether we impose a size limit to avoid it consuming all ram and what perms are needed. Ideally applies to v6.1 upwards