docker-mautic
docker-mautic copied to clipboard
On-the-fly asset generation is broken
When running the docker image of mautic5, the asset generation of media files fails for a lot of JS files and outputs their paths instead of their contents.
This issue was originally posted here: https://github.com/mautic/mautic/issues/13076, but I think this is the proper place for it.
The cause is this: https://github.com/mautic/docker-mautic/blob/084bcee5cc963379a8c519fe2fad4df8eeb37615/apache/Dockerfile#L62
All NPM packages are forcefully removed (apart from jquery and vimeo-froogaloop2) for some reason, but that breaks the on-the-fly generation of media/js/libraries.js for example.
Thanks for flagging up the issue @TonyBogdanov - will share it in the Docker channel on Slack and hopefully someone can jump in and take a look!
I have same problem using version image 5.1.0 from Docker Hub.
@mollux was there a reason for this line?: https://github.com/mautic/docker-mautic/blob/mautic5/fpm/Dockerfile#L62 It seems like it's causing a bunch of issues.
Removing that line fixes the issue.
Hey there! I'm helping the new maintainers of this repository. It was neglected for some time but that changes now! Could you please re-test if you are still getting this issue so we could focus our limited time on the issues that are still relevant? If there will be no response we'll close this issue in 1 week. It can always be re-opened later on.
Hi @IonutOjicaDE, the latest commit in this repo was on Apr 16, 2024 and I found / opened this issue on May 2, so it should most definitely still exist. Note, this is not an issue with Mautic, but the way the docker images are generated (Dockerfile).
Hey @TonyBogdanov ,
Thank you for the clarification. We'll take a look on it once the core team gives us permissions to perform actions on the repository!
@IntrovertedFL
Can you please have a look of this issue?
Sorry, but I couldn't assign it to you for some reason.
Hey @O-Mutt ,
Could you please check if this issue still holds for v5.2.5?
Aaron is unavailable to check it, hence why I'm asking for your help.
Thanks!
Yeah, I can take a look in the morning tomorrow 👍👌
Thanks :)