mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
add magento
This commit is contained in:
parent
8d030399de
commit
9ce1f15062
42
magento/Dockerfile
Normal file
42
magento/Dockerfile
Normal file
@ -0,0 +1,42 @@
|
||||
#
|
||||
# Dockerfile for magento
|
||||
#
|
||||
|
||||
FROM php:5.6-apache
|
||||
MAINTAINER kev<noreply@datageek.info>
|
||||
|
||||
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 .
|
||||
|
24
magento/README.md
Normal file
24
magento/README.md
Normal file
@ -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
|
||||
```
|
14
magento/docker-compose.yml
Normal file
14
magento/docker-compose.yml
Normal file
@ -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
|
@ -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:
|
||||
|
@ -1,5 +1,5 @@
|
||||
opencart:
|
||||
image: opencart
|
||||
image: vimagick/opencart
|
||||
ports:
|
||||
- "8000:80"
|
||||
links:
|
||||
|
Loading…
Reference in New Issue
Block a user