bitnami / containers

Bitnami container images
https://bitnami.com
Other
3.08k stars 4.49k forks source link

[bitnami/opencart] All uploaded catalog media is lost on container restart (image folder is not mapped as a volume) #68552

Open doublehelix opened 2 weeks ago

doublehelix commented 2 weeks ago

Name and Version

bitnami/opencart:4.0.2-3

What architecture are you using?

amd64

What steps will reproduce the bug?

  1. Run the latest bitnami/opencart (and MariaDB etc.)
  2. Ensure the persistent volumes are configured as per https://hub.docker.com/r/bitnami/opencart
    • --volume /path/to/opencart_data:/bitnami/opencart
  3. log into the administration console
  4. Upload a new product image to the media manager
  5. Stop the stack
  6. Start the stack

What is the expected behavior?

Images uploaded to the opencart volume are persisted

What do you see instead?

All images are gone. It seems OpenCart 4.x stores images in /opt/bitnami/opencart/images which is NOT mounted as a volume. All catalog images (as well as the store logo etc.) are lost if the container restarts or is updated.

gongomgra commented 2 weeks ago

Hi @doublehelix

Thank you for bringing this issue to our attention. We appreciate your involvement! If you're interested in contributing a solution, we welcome you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here.

Your contribution will greatly benefit the community. Feel free to reach out if you have any questions or need assistance.

github-actions[bot] commented 2 days ago

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.