You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
I created a symbolic link for my Magento module under src/app/code, but it is not being recognized within the Docker environment. The module does not appear in Magento, and running bin/magento setup:upgrade does not detect it.
Steps to Reproduce:
Inside src/app/code, create a symbolic link to the module:
Hello @Ylmzef! I'm here to help you with your Docker project. I can assist you in solving bugs, answering questions, and becoming a contributor.
The issue you're experiencing with symbolic links not being recognized inside the Docker container is likely due to how Docker handles volume mounts. By default, Docker does not preserve symbolic links when mounting volumes, which can cause the symlink to appear as a regular file inside the container.
To work around this, you can try the following approaches:
Bind Mounts: Instead of using a symbolic link, you can directly mount the module directory into the container using a bind mount. This can be done by modifying your docker-compose.yml file to include a specific volume mount for your module. For example:
This will ensure that the module directory is directly accessible inside the container.
Copy the Module: As an alternative, you can copy the module directly into the src/app/code directory within the container. This can be done manually or by using a script during the container's startup process.
Use Docker's COPY Command: If you are building a custom Docker image, you can use the COPY command in your Dockerfile to include the module in the image itself.
These methods should help you ensure that your Magento module is recognized within the Docker environment.
Description:
I created a symbolic link for my Magento module under
src/app/code
, but it is not being recognized within the Docker environment. The module does not appear in Magento, and runningbin/magento setup:upgrade
does not detect it.Steps to Reproduce:
src/app/code
, create a symbolic link to the module:bin/magento setup:upgrade
inside the container.Expected Behavior:
The module should be detected and applied in the Magento instance.
Actual Behavior:
The module is not recognized, and Magento does not detect the symbolic link.
Environment Details:
Additional Notes:
ls -l src/app/code/Vendor
on the host shows the symbolic link correctly.Is there a recommended way to work with symbolic links inside this Docker setup? Any guidance would be appreciated!
The text was updated successfully, but these errors were encountered: