Skip to content

Instantly share code, notes, and snippets.

@ivanxuu
Created July 23, 2019 06:48
Show Gist options
  • Save ivanxuu/4b1d2815883e50cf76101fbcba6c56d7 to your computer and use it in GitHub Desktop.
Save ivanxuu/4b1d2815883e50cf76101fbcba6c56d7 to your computer and use it in GitHub Desktop.
Chuleta prestashop 1.7 generar docker
$ sudo docker network create old-prestashop-tier
$ sudo docker volume create --name old_mariadb_data
$ sudo docker run -d --name oldmariadb \
-e ALLOW_EMPTY_PASSWORD=yes \
-e MARIADB_USER=bn_prestashop \
-e MARIADB_DATABASE=old_prestashop \
--net old-prestashop-tier \
--volume old_mariadb_data:/oldprestashop \
bitnami/mariadb:latest
$ sudo docker volume create --name old_prestashop_data
$ docker run -d --name oldprestashop -p 80:80 -p 443:443 \
  -ti \
--net old-prestashop-tier \
--volume old_prestashop_data:/oldprestashop \
quetzacoalt/prestashop

Ahora ve al navegador a http://localhost Introduce los datos que pida y cuando pida datos de la BAse de Dato introduce:

db_server_address = oldmariadb
database_name = old_prestashop
db_user = bn_prestashop
password = (vacio, sin password)

Para ejecutar un comando en la maquina que corre prestashop ejecuta:

$ sudo docker exec oldprestashop ls -l

Para copiar un archivo ejecuta:

$ sudo docker cp file.txt oldprestashop:/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment