Closed panakour closed 2 weeks ago
Had the same Problem. You can install git when building the container, this should solve the error. But i would also be very interested to know why git is required now.
This is due to them migrating to Symfony Flex / replacing their updater mechanism / better composer support.
This was announced in one of Shopwares ADRs: https://developer.shopware.com/docs/resources/references/adr/2022-11-09-composer-based-web-updater.html#consequences
having the same issue, adding git to the final base-image manually works for me.
maybe we can move on with the PR?
FROM base-image
USER root
RUN apk upgrade --no-cache && apk add --no-cache git
USER www-data
COPY --from=build --chown=www-data /src /var/www/html
It sounds for me like a regression in the latest update. Git should be never required in the environment we drive in this repository (all plugins are required already). I think something in PluginLifecycle changed here 🤔
I would like to debug this the next days.
You could maybe do this
and this: https://developer.shopware.com/docs/guides/hosting/installation-updates/cluster-setup.html
This should definitively block all Composer operations and should not call git
Seems like fixed after this https://github.com/shopware/docker/pull/99
After upgrading to the latest version v6.6.4.0, the following error occurs when executing the command console plugin:update:all: https://github.com/shopware/docker/blob/c89dd1d351bf8d1c96fc98c64f12bfd3eb83495f/fpm/rootfs/usr/local/shopware/setup_6.6.x#L23