wger icon indicating copy to clipboard operation
wger copied to clipboard

No images/pictures for exercises in Docker demo image

Open ShanSanear opened this issue 2 years ago • 2 comments

Steps to Reproduce

  1. Run the Docker demo command (i.e. docker run -ti --name wger.demo --publish 8000:80 wger/demo)
  2. Log in
  3. Go to exercises site

Expected results: At least some exercises having images.

Actual results: Only placeholder images are present, all calls to /media end up in 404.

ShanSanear avatar Aug 05 '23 16:08 ShanSanear

Just to test things out, I checked what was going on inside the container and it seems that media folder has not been copied from /home/wger/src, or Apache2 configuration was meant to be a bit different.

Quick and dirty fix for that was cp /home/wger/src/media/exercise-images /home/wger/media/ -r so appropriate change in Dockerfile would probably do the trick.

ShanSanear avatar Aug 05 '23 16:08 ShanSanear

Yes, there's something broken here, I'll take a look

rolandgeider avatar Aug 07 '23 17:08 rolandgeider