docker-openwisp icon indicating copy to clipboard operation
docker-openwisp copied to clipboard

[feature] Execute collect static only when versions change

Open nemesifier opened this issue 3 years ago • 2 comments
trafficstars

I have an idea of how we could deal with extreme slowness of calling collectstatic when using object storage:

  • We could hash the output of pip freeze in the dashboard container
  • Before calling collectstatic we check in redis to see if the current pip freeze hash is different from the one saved there
  • If it's different we call collectstatic and then save the new hash in redis

@pandafy @atb00ker what do you think?

nemesifier avatar Jul 01 '22 22:07 nemesifier

I think this would work! 😄

atb00ker avatar Jul 02 '22 18:07 atb00ker

I agree, this will surely reduce the time for bringing up new container.

pandafy avatar Jul 04 '22 09:07 pandafy