Comments (6)
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.
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.
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.
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.
@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.
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)
- Attach to the container from Visual Studio Code
- Portainer - Unable to rename Admin file HOT 1
- I want to acccess by public-ip when PS_INSTALL_AUTO=1
- Getting HTTP 200 - parsererror - ERROR while installation
- Auto Install PS_INSTALL_AUTO=1 with DB_SERVER='host.docker.internal' Not working
- How to change the default installation path [/var/www/html] ?
- Waiting for confirmation of MySQL service startup HOT 3
- docker: no matching manifest for linux/arm64/v8 in the manifest list entries. HOT 1
- Refresh docker images
- Using Docker Prestashop in Cloud
- DB reinstalled even if the value of $PS_ERASE_DB and $PS_INSTALL_DB is 0 HOT 1
- PrestaShop update debug regex not compatible with supplied defines_custom.inc.php
- Outdated description on docker hub HOT 5
- End of support for debian stretch - Failed to fetch stretch* 404 Not Found - Need to rebuild old images to use debian strech in archive repo
- I always encounter failures when downloading the language while trying to install Docker. How can I resolve this? Do I need to configure a proxy for Docker? HOT 1
- Prestashop 8.1 FPM with Nginx - 504 Gateway Timeout HOT 3
- Should Composer be included in some images ? HOT 2
- PrestaShop docker Permission denied after " Launching the installer script..."
- signal Segmentation fault on macOS M2 HOT 2
- NPM + Nginx 1.24 + PS 8.1.2 php 8.1 fpm HOT 1
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 docker.