From 9ee6abb70761dc9ab5ce0a49a80f0d4941ecdd3d Mon Sep 17 00:00:00 2001 From: kev Date: Tue, 19 Dec 2017 15:01:51 +0800 Subject: [PATCH] add prestashop --- README.md | 5 +++-- prestashop/Dockerfile | 31 +++++++++++++++++++++++++++++++ prestashop/README.md | 30 ++++++++++++++++++++++++++++++ prestashop/docker-compose.yml | 16 ++++++++++++++++ 4 files changed, 80 insertions(+), 2 deletions(-) create mode 100644 prestashop/Dockerfile create mode 100644 prestashop/README.md create mode 100644 prestashop/docker-compose.yml diff --git a/README.md b/README.md index 3e9cbcf..3a7732c 100644 --- a/README.md +++ b/README.md @@ -151,18 +151,19 @@ A collection of delicious docker recipes. - [x] jamapi - [x] joomla - [x] json-server -- [x] magento +- [x] magento :shopping_bags: - [x] mantisbt - [x] mediagoblin - [x] netdata - [x] nginad - [x] nodebb :+1: -- [x] opencart +- [x] opencart :shopping_bags: - [x] openrefine - [x] phpbb - [x] phpmyadmin-arm - [x] phpvirtualbox-arm - [x] piwik +- [x] prestashop :shopping_bags: - [x] revive - [x] zoneminder :+1: diff --git a/prestashop/Dockerfile b/prestashop/Dockerfile new file mode 100644 index 0000000..ffd31da --- /dev/null +++ b/prestashop/Dockerfile @@ -0,0 +1,31 @@ +# +# Dockerfile for prestashop +# + +FROM php:5.6-apache +MAINTAINER kev + +RUN a2enmod rewrite + +RUN set -xe \ + && apt-get update \ + && apt-get install -y libicu-dev libpng-dev libjpeg-dev libmcrypt-dev unzip \ + && rm -rf /var/lib/apt/lists/* \ + && docker-php-ext-configure intl \ + && docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \ + && docker-php-ext-install intl gd mbstring mcrypt opcache pdo pdo_mysql zip + +WORKDIR /var/www/html + +ENV PS_VER 1.7.2.4 +ENV PS_MD5 19c374fd4e65e2a0d978c619781686bc +ENV PS_URL https://download.prestashop.com/download/releases/prestashop_${PS_VER}.zip +ENV PS_FILE prestashop_${PS_VER}.zip + +RUN set -xe \ + && echo "short_open_tag=off" >> /usr/local/etc/php/php.ini \ + && curl -sSL ${PS_URL} -o ${PS_FILE} \ + && echo "${PS_MD5} ${PS_FILE}" | md5sum -c \ + && unzip ${PS_FILE} \ + && rm ${PS_FILE} \ + && chown -R www-data:www-data /var/www diff --git a/prestashop/README.md b/prestashop/README.md new file mode 100644 index 0000000..829b0be --- /dev/null +++ b/prestashop/README.md @@ -0,0 +1,30 @@ +prestashop +========== + +[PrestaShop][1] has comprehensive product features for small, medium or large +ecommerce stores and sell online. Hundreds of features are standard and 100% +free. + +## docker-compose.yml + +```yaml +prestashop: + image: vimagick/prestashop + ports: + - "8000:80" + links: + - mysql + volumes: + - /var/www + restart: always + +mysql: + image: mysql + environment: + - MYSQL_ROOT_PASSWORD=root + - MYSQL_DATABASE=prestashop + restart: always + +``` + +[1]: https://www.prestashop.com/ diff --git a/prestashop/docker-compose.yml b/prestashop/docker-compose.yml new file mode 100644 index 0000000..5f0ec86 --- /dev/null +++ b/prestashop/docker-compose.yml @@ -0,0 +1,16 @@ +prestashop: + image: vimagick/prestashop + ports: + - "8000:80" + links: + - mysql + volumes: + - /var/www + restart: always + +mysql: + image: mysql + environment: + - MYSQL_ROOT_PASSWORD=root + - MYSQL_DATABASE=prestashop + restart: always