docker icon indicating copy to clipboard operation
docker copied to clipboard

Autoinstall will fail the container to start

Open freechelmi opened this issue 4 years ago • 1 comments

I ve tested tons of old and new images from docker hub ( 1.6 / 1.7 ) all of theme fail if I set AUTO_INSTALL=1 with

app_1_2276430c3565 | * Checking if db is available... app_1_2276430c3565 | app_1_2276430c3565 | * DB server db is available, let's continue ! app_1_2276430c3565 | app_1_2276430c3565 | * Setting up install lock file... app_1_2276430c3565 | app_1_2276430c3565 | * Reapplying PrestaShop files for enabled volumes ... app_1_2276430c3565 | /tmp/docker_run.sh: 51: [: !=: unexpected operator app_1_2276430c3565 | app_1_2276430c3565 | * No pre-install script found, let's continue... app_1_2276430c3565 | app_1_2276430c3565 | * Renaming admin folder as admin001 ... app_1_2276430c3565 | app_1_2276430c3565 | * Drop mysql database... app_1_2276430c3565 | app_1_2276430c3565 | * Dropping existing database prestashop... app_1_2276430c3565 | app_1_2276430c3565 | * Installing PrestaShop, this may take a while ... app_1_2276430c3565 | app_1_2276430c3565 | * Launching the installer script... app_1_2276430c3565 | Could not open input file: /var/www/html//index_cli.php

freechelmi avatar Oct 08 '21 11:10 freechelmi

I got it working with this : podman run -ti --rm --network prestashop-net -e DB_SERVER="some-mysql" -e PS_DEV_MODE=1 -e DB_NAME=ps_1778 -e PS_INSTALL_AUTO=1 -e PS_INSTALL_DB=1 -e PS_ERASE_DB=1 -e PS_FOLDER_ADMIN="admin-dev" -e PS_FOLDER_INSTALL=install_off -e ADMIN_MAIL="[email protected]" -e ADMIN_PASSWD="passpass" -e PS_DOMAIN="localhost:8081" -p 8081:80 -d prestashop/prestashop:1.7.7.8-7.2-apache just replace podman with docker and it should work (you have to wait a few seconds before the container is ready).

SebSept avatar Nov 04 '21 22:11 SebSept