Coder Social home page Coder Social logo

Comments (6)

Quetzacoalt91 avatar Quetzacoalt91 commented on July 24, 2024 2

I'm also facing the issue about volumes today, with busy resources. I'd need to set the whole /var/www/html as a volume.

I'll have a look on your PR.

from docker.

Quetzacoalt91 avatar Quetzacoalt91 commented on July 24, 2024 1

Hello @khena,

With the PR #87 updating all the PrestaShop images, I close this issue as it is almost available on Docker Hub.

Regards

from docker.

thomas15v avatar thomas15v commented on July 24, 2024

I think only /var/www/html/config should be declared as volume, but only if it doesn't contain files (which I ain't sure atm). Declaring /var/www/html as volume will delete all the prestashop files, I don't think that would be a good idea.

from docker.

Quetzacoalt91 avatar Quetzacoalt91 commented on July 24, 2024

This could work, I reapply all the files until the shop is installed. See https://github.com/PrestaShop/docker/blob/master/config_files/docker_run.sh#L11

from docker.

khena avatar khena commented on July 24, 2024

@thomas15v if I understand how prestashop works (I'm only a docker expert :p ) you never update the core of the framework, you will always update the 3 volumes (module, override and theme).

But we can't protect the config, admin & install dir because pretashop needs to rename these directories after install.

So I think the only solution is to mount /var/www/html and to detect on docker CMD if prestashop is already installed into the /var/www/html (for example a file exists). If yes, we skip all. If the user restart the container, we will keep the config, adminXXX and the installXXX .

it's the same kind of script than the @Quetzacoalt91 script (/tmp/ps-extractor.sh)

from docker.

khena avatar khena commented on July 24, 2024

PR #83

what do you think about adding a new ENV var PS_ERASE_MYSQL (default 0) only to confirm the mysql erase action?

from docker.

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.