Configure Prestashop
Install Docker Engine
Install Docker Compose
Since Docker Compose
stable release
doesn’t provide binary for armv7
, you need to try
installing newer version
Docker Compose V2. To correctly install Docker Compose V2 we need to install it
with su
user.
Run Prestashop from Docker
MySQL docker image
and
Prestashop docker image
don’t provide support for armv7l
.
MariaDB
provides support for arm64
. However,
Raspberry Pi OS is 32 bits, you can verify with uname -m
that kernel is built
for armv7l
. Although
Raspberry Pi is working on 64 bits OS beta version, the better alternative now is to use
alpine-prestashop
and
alpine-mariadb.
Execute following commands
cd ~
[ -d prestashop ] || mkdir prestashop
cd prestashop
curl https://gist.githubusercontent.com/vitaminac/851e2caa9337b31568844cfe53ef6806/raw/fffde01a2e826630ed1c8f95b32c4586359a7053/raspberry-pi-prestashop-docker-compose.yml -o docker-compose.yml
sudo docker compose up
Complete Installation
Open http://localhost:8080 you will see the installation page of Prestashop, follow the instruction and complete the installation. In the System configuration you need to adjust the setting according to the environment variables of docker compose file.
- Database server address: mysql
- Database name: prestadb
- Database login: prestauser
- Database password: prestapass
- Tables prefix: leave it as default
- Drop existing tables: leave it as default
After the installation is completed you need to delete the
install
folder with following command
sudo rm -rdf $(sudo docker volume inspect $(sudo docker volume ls | grep prestashop-php | awk '{print $2}') | grep Mountpoint | awk '{print substr($2, 2, length($2) - 3)}')/install
Now you can access your front office of your Prestashop with http://localhost:8080 and back office with http://localhost:8080/admin4365218asd897fasd54f78asdf57/index.php.
Configure Odoo
sudo docker run -p 8069:8069 mahood73/rpi-odoo
Reference
- https://gist.github.com/vitaminac/851e2caa9337b31568844cfe53ef6806
- https://gist.github.com/vitaminac/a69d692f774bc0f37075371c1ace77c3