From 9ce1f15062eb322329687029687dc46529aa3c5a Mon Sep 17 00:00:00 2001 From: kev Date: Sun, 26 Jul 2015 19:42:40 +0800 Subject: [PATCH] add magento --- magento/Dockerfile | 42 +++++++++++++++++++++++++++++++++++++ magento/README.md | 24 +++++++++++++++++++++ magento/docker-compose.yml | 14 +++++++++++++ opencart/README.md | 5 ++++- opencart/docker-compose.yml | 2 +- 5 files changed, 85 insertions(+), 2 deletions(-) create mode 100644 magento/Dockerfile create mode 100644 magento/README.md create mode 100644 magento/docker-compose.yml diff --git a/magento/Dockerfile b/magento/Dockerfile new file mode 100644 index 0000000..ac04c9e --- /dev/null +++ b/magento/Dockerfile @@ -0,0 +1,42 @@ +# +# Dockerfile for magento +# + +FROM php:5.6-apache +MAINTAINER kev + +RUN a2enmod rewrite + +RUN apt-get update \ + && apt-get install -y libcurl3-dev \ + libfreetype6 \ + libfreetype6-dev \ + libjpeg62-turbo \ + libjpeg62-turbo-dev \ + libmcrypt-dev \ + libmcrypt4 \ + libpng12-dev \ + libpng12-dev \ + && docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \ + && docker-php-ext-install gd mcrypt mbstring pdo_mysql \ + && apt-get purge -y --auto-remove libcurl3-dev \ + libfreetype6-dev \ + libjpeg62-turbo-dev \ + libmcrypt-dev \ + libpng12-dev \ + libpng12-dev \ + && rm -rf /var/lib/apt/lists/* + +WORKDIR /var/www/html + +ENV MAGENTO_VER 1.9.1.1 +ENV MAGENTO_MD5 0066442dbdfc70bf1385e42c1bff1559 +ENV MAGENTO_URL http://www.magentocommerce.com/downloads/assets/$MAGENTO_VER/magento-$MAGENTO_VER.tar.gz +ENV MAGENTO_FILE magento.tar.gz + +RUN curl -sSL ${MAGENTO_URL} -o ${MAGENTO_FILE} \ + && echo "${MAGENTO_MD5} ${MAGENTO_FILE}" | md5sum -c \ + && tar xzf ${MAGENTO_FILE} --strip 1 \ + && rm ${MAGENTO_FILE} \ + && chown -R www-data:www-data . + diff --git a/magento/README.md b/magento/README.md new file mode 100644 index 0000000..d58d7e7 --- /dev/null +++ b/magento/README.md @@ -0,0 +1,24 @@ +magento +======= + +`Magento` Community Edition is open source eCommerce software used to power your +online store and can be downloaded for free. Developers can modify the core +code and add features and functionality by installing extensions from the +Magento Connect marketplace. + +``` +magento: + image: vimagick/magento + ports: + - "8000:80" + links: + - mysql + restart: always + +mysql: + image: mysql + environment: + - MYSQL_ROOT_PASSWORD=root + - MYSQL_DATABASE=magento + restart: always +``` diff --git a/magento/docker-compose.yml b/magento/docker-compose.yml new file mode 100644 index 0000000..d61577f --- /dev/null +++ b/magento/docker-compose.yml @@ -0,0 +1,14 @@ +magento: + image: vimagick/magento + ports: + - "8000:80" + links: + - mysql + restart: always + +mysql: + image: mysql + environment: + - MYSQL_ROOT_PASSWORD=root + - MYSQL_DATABASE=magento + restart: always diff --git a/opencart/README.md b/opencart/README.md index ee34aad..efe78df 100644 --- a/opencart/README.md +++ b/opencart/README.md @@ -1,9 +1,12 @@ +opencart +======== + `OpenCart` is designed feature rich, easy to use, search engine friendly and with a visually appealing interface. ``` opencart: - image: opencart + image: vimagick/opencart ports: - "8000:80" links: diff --git a/opencart/docker-compose.yml b/opencart/docker-compose.yml index a2f99a3..416343b 100644 --- a/opencart/docker-compose.yml +++ b/opencart/docker-compose.yml @@ -1,5 +1,5 @@ opencart: - image: opencart + image: vimagick/opencart ports: - "8000:80" links: