Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persisting the env.php file #54

Open
mikeymike opened this issue Jun 28, 2017 · 0 comments
Open

Persisting the env.php file #54

mikeymike opened this issue Jun 28, 2017 · 0 comments

Comments

@mikeymike
Copy link
Contributor

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

  1. Single file volume.. not possible because it's a Linux only feature 😭
  2. Copy from local filesystem.

Solution proposed...

  1. On workflow install command/s ensure the env.php file is pulled back to the local FS.
  2. Remove env related volumes (might be Selco specific until backported if not already)
  3. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant