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
Hey, guys.
I'm wondering about how to manage Magento 2 deployments in docker without any overhead from doing setup:upgrade and cache cleaning when dealing with multiple containers setup on production?
My idea is to build as much as we can in the image before we actually run container in production cluster.
Ideally a running container should not clear a cache or regenerate files, but only setup:upgrade without touching FS.
Also, if there is an setup:upgrade, we need to make sure that it happens from 1 container only.
At this stage, I've created a process, when we dump config from production and use it during build step.
So, we can setup:di:compile and setup:static-content:deploy -f without external connections.
I'm trying to think how we can process with the rest of moving parts.
If you know some examples or have a suggestion, please let me know?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey, guys.
I'm wondering about how to manage Magento 2 deployments in docker without any overhead from doing setup:upgrade and cache cleaning when dealing with multiple containers setup on production?
My idea is to build as much as we can in the image before we actually run container in production cluster.
Ideally a running container should not clear a cache or regenerate files, but only setup:upgrade without touching FS.
Also, if there is an setup:upgrade, we need to make sure that it happens from 1 container only.
At this stage, I've created a process, when we dump config from production and use it during build step.
So, we can setup:di:compile and setup:static-content:deploy -f without external connections.
I'm trying to think how we can process with the rest of moving parts.
If you know some examples or have a suggestion, please let me know?
Beta Was this translation helpful? Give feedback.
All reactions