Comments (5)
for (1) git repo content gets added to the image as the image is built, so that will always be present.
for (2) it's not clear to me how you're introducing the changes, but if you are making changes to the running container then yes, those changes will be lost if either the container is restarted, or you build a new image.
If that's not what you're doing, i think we'll need more exact recreate steps. @luciddreamz or @coreydaley, either of you have experience w/ drupal that might help here?
from s2i-php-container.
It's potentially the same issues that we had on V2. You need to pick which way you want to make your changes:
- Run the drupal setup on OpenShift and then make all of your modifications through the Drupal admin.
- Do your setup locally and then commit your changed files to the repo so they don't get wiped out.
This issue also affects WordPress users.
from s2i-php-container.
Thanks @bparees and @coreydaley for your quick response. I really appreciate it.
Now, I get to understand how the server works. Since there's no way for me to execute Drush command(which I think would be first best step to configure and work on Drupal site), and that Drupal installation generates incomplete files and folders on the server that leads me to broken pages and URLs,
- Does Drupal admin changes are saved on the image even if build is restarted?
- Will my local changes commits on repo automatically reflects on the server or does it applied after another build?
I'm still new to this set up and I would really appreciate your help. I can't find Drupal related issues on google as I'm getting the openshift.redhat articles.
Thanks!
from s2i-php-container.
Does Drupal admin changes are saved on the image even if build is restarted?
are you sure you mean "build is restarted" here? if the pod/container is restarted then no, any changes you made via the admin interface will not be saved, unless you've configured the image to save its state to a volume and mounted an appropriate persistent volume into the pod.
Will my local changes commits on repo automatically reflects on the server or does it applied after another build?
applied after another build.
Here's the flow:
- you put some content in a git repo
- you run a build which takes the git content and adds it to an image you specifiy, producing a new application image
- that image gets run as a container. Any changes you make inside the running container will be lost if the container restarts, because it will start from the application image again, which is not changed.
- if you want to change the image, you go to (1) (update content in a git repo)
that's the basic flow.
Again, you can also store content on a volume in which case the content can be preserved through restarts and you can edit it while the pod is running and not lose the changes, but the basic php image isn't designed to do this today, so the best thing for you to do is make your changes in your git repo, not in the running container.
from s2i-php-container.
@johnreytanquinco Do you have any further questions/comments or should we go ahead and close this issue?
from s2i-php-container.
Related Issues (20)
- ENV and FPM HOT 2
- allow easily consuming kubernetes TLS secrets HOT 1
- tests suite failure: blocker composer plugin HOT 1
- PHP 8.1 build - It's the latest/greatest/fastest and we're anxious to start using it. HOT 11
- AH02282: No slotmem from mod_heartmonitor
- Testing issue created for samples operator HOT 1
- Feature request: Support custom certs for composer HOT 1
- Executing `test_scl_usage` when tty exists waits on 'cat' forever HOT 5
- No Action Required !! Testing automation workflow HOT 1
- No Action Required !! Testing automation workflow HOT 1
- How to get PHP 8.0.28 ? Multiple vulnerabilities in PHP 8.0.20 HOT 2
- Incomplete ssl test
- Run script error HOT 2
- 8.1 version of s2i-php-container web server user does not get the environment variables (env) secrets from Openshift HOT 2
- Environment variables are being ignored by the php engine HOT 4
- php-fpm issues (container runtime) HOT 4
- PHP version leakage HOT 5
- Default fpm settings easily lead to out of memory events or OOMkiller being active HOT 1
- Add support for PHP-8.2 to Fedora HOT 1
- PHP 8.3 timeline / PHP 8.3 is measuring+53% faster than 8.2 - HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s2i-php-container.