No, I have trouble expressing myself. A customer to dockeriser Pimcore for Kubernet and OpenShift. The company imposes strict directive in terms of security, in this way, the database is remote, Pimcore is installed during the RUN of dockerfile. Our process:
We want to be able to deploy a new Pimcore to update Pimcore and our bundles, but we want all this to be done automatically, in this case 2 cases:
Initialization: The database does not exist, no config file to create, we launch a classic installation, and we then install our Bundle.
Case of an update of the same version: The database, we can not launch the installation and yet we must initialize Pimcore because we always start from a blank pimcore.
Case of an upgrade: We are upgrading Pimcore (5.x.x to 5.y.y) so we potentially have changes to the database structure and more to pass on our database.
Today, this is what we do:
- Decompression of Pimcore
2a) If BDD does not exist -> Typical installation
2b) If BDD exists: We copy the file structure contained in profiles / empty, we copy our bundle, we install our bundle.
(Knowing that we have a persistent storage of the / var folder to keep our configuration (system.php …)
This way of doing things is not optimal, and I would like to know if there is another, cleaner way.