Closed hlugt closed 1 year ago
Hm, maybe the error sits in the spotweb repo? Noticed that the image from erikdevries/spotweb leads to the same errors on arm... Not sure how to interpret the issue I referred to, but maybe some commit in the spotweb repo causes this on linux (and thus mac as well) platforms?
I can't replicate this using ARM on my Mac. As you said, if it's also on another image this might be a local issue? What is the path you are mapping the data dir to? Can this be too long for the underlying file system?
Hi, weird that on a mac it does not occur. As it seems it has to do with the symlink. Must be an arm vs x86 thingy then?
Anyway: I changed the git clone to the following in the dockerfile, and I have build a working image myself for now (and btw moved it to PHP8.1 while busy editing anyway).
Symlinks false can be done safely I think as the git repo is not used as a code repo anyway.... Have not checked for change of behaviour in a amd64 variant (or mac ofcourse).
Would be great if you could implement it if it does not break the amd64 images?
RUN git clone --no-checkout -b master --depth 1 --single-branch https://github.com/spotweb/spotweb.git /var/www/spotweb && \
cd /var/www/spotweb && \
git config core.symlinks false && \
git checkout && \
# rm -rf /var/www/spotweb/.git && \
chmod -R 775 /var/www/spotweb && \
chown -R www-data:www-data /var/www/spotweb
BTW, it goes wrong at pull time, so no path mapping in play yet... "standard" docker install on debian sbc's.
Oh, and I now see that you have an arm mac... Then I do not understand why it does occur at the arm sbc's I tried to pull it on... Tried all version's as said, so a type mismatch seems to be unlikely. Worst case I need to keep building them myself...
Another btw: I can see it on a local host (ie not in container) git clone easily as well. Normal clone: the vendor/bin/phpunit is unreadable. Following same procedure first no-checkout setting config and then checkout, file is readable. Maybe wait for source spotweb to get fixed if there is an confirmed issue...
Thanks for the patch, I applied your fix. Does it work for you? Also updated to PHP 8.1 ;)
Great, it works for me!
Hi,
Thanks for your containers. But latest images for arm pulled (either armv7/armv8/arm64) architecture give error: "/var/www/spotweb/vendor/bin/phpunit: file name too long" The amd64 version ~error~ pulls ok...
So I guess this must be arm specific. Just a wild guess: maybe on build for arm missing -no-dev ([spotweb issue #](error: failed to symlink 'vendor/bin/phpunit': File name too long #749)?
Would really like to continue using your container but on a arm sbc... Could you take a look?