Giter VIP home page Giter VIP logo

Comments (5)

bparees avatar bparees commented on July 22, 2024 1

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.

coreydaley avatar coreydaley commented on July 22, 2024 1

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.

johnreytanquinco avatar johnreytanquinco commented on July 22, 2024

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.

bparees avatar bparees commented on July 22, 2024

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:

  1. you put some content in a git repo
  2. you run a build which takes the git content and adds it to an image you specifiy, producing a new application image
  3. 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.
  4. 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.

coreydaley avatar coreydaley commented on July 22, 2024

@johnreytanquinco Do you have any further questions/comments or should we go ahead and close this issue?

from s2i-php-container.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.