Running mapcache_seed from separate container
I have mapcache running in a Kubernetes pod consisting of 2 containers. One runs the actual apache server with mapcache and the other adds new layer times to the database mapcache is using and then seeds those times and removes old times with mapcache_seed. Both containers are based on the same base docker image since mapcache_seed needs the same apache configuration. However, this makes apache a little mad where when using the -m delete flag (I don't think I was getting it with the regular seeding) I see:
+ su -l www-data -s /bin/bash -c 'time mapcache_seed -c /work/mapcache/mapcache.xml -t g16_abi_radm2_l1b_C03 -n 4 -g grid_g16_abi_radf_1000m -D TIME=2020-10-28T18:59:53Z -m delete'
mapcache_seed: /build/apr-util-FlO6iT/apr-util-1.6.1/misc/apr_reslist.c:161: reslist_cleanup: Assertion `rl->ntotal == 0' failed.
I've looked up the error and most things talk about mod_cluster and two threads pretending to be the same server or something like that but I don't have mod_cluster. I'm guessing this is because of how I have two containers essentially acting as the same apache server. I'm wondering if there are any other ideas how I could call mapcache_seed from outside of the main apache server? Or how I could maybe avoid having to do my two container strategy as I'm doing it now.