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
Today @AydinHassan hit a weird bug that was potentially caused by the fact we have a full named volume for the app/etc directory.
Volumes will happily mount over the files in the image and thus if a file is somehow removed from the volume it will cause that file to not exists in later rebuilds until you recreate it yourself after the volume is mounted.
We have this volume purely to persist the env.php file. So we need to better approach at persisting the single configuration file that doesn't impact other files in the directory.
Possible solutions were discussed
Single file volume.. not possible because it's a Linux only feature 😭
Copy from local filesystem.
Solution proposed...
On workflow install command/s ensure the env.php file is pulled back to the local FS.
Remove env related volumes (might be Selco specific until backported if not already)
Subsequent builds will copy the file in on the COPY app app command
Caveat to this is that the user is then responsible for ensuring that file stays persisted, if they delete it they will need to recover it, recreate it or re-install Magento to generate it.
The text was updated successfully, but these errors were encountered:
Today @AydinHassan hit a weird bug that was potentially caused by the fact we have a full named volume for the
app/etc
directory.Volumes will happily mount over the files in the image and thus if a file is somehow removed from the volume it will cause that file to not exists in later rebuilds until you recreate it yourself after the volume is mounted.
We have this volume purely to persist the
env.php
file. So we need to better approach at persisting the single configuration file that doesn't impact other files in the directory.Possible solutions were discussed
Solution proposed...
env.php
file is pulled back to the local FS.COPY app app
commandCaveat to this is that the user is then responsible for ensuring that file stays persisted, if they delete it they will need to recover it, recreate it or re-install Magento to generate it.
The text was updated successfully, but these errors were encountered: