1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00

update magento

This commit is contained in:
kev 2016-07-04 14:03:16 +08:00
parent 9d89ae27c4
commit ba2a7eaf73
4 changed files with 66 additions and 38 deletions

View File

@ -58,7 +58,6 @@ A collection of delicious docker recipes.
- [x] hubot - [x] hubot
- [x] influxdb - [x] influxdb
- [x] influxdb-arm - [x] influxdb-arm
- [x] mantisbt
- [x] mariadb - [x] mariadb
- [x] mariadb-arm - [x] mariadb-arm
- [x] minidlna - [x] minidlna
@ -113,6 +112,8 @@ A collection of delicious docker recipes.
- [x] jenkins-arm :beetle: - [x] jenkins-arm :beetle:
- [x] joomla - [x] joomla
- [x] json-server - [x] json-server
- [x] magento
- [x] mantisbt
- [x] netdata - [x] netdata
- [x] nginad - [x] nginad
- [x] nodebb :+1: - [x] nodebb :+1:

View File

@ -3,50 +3,70 @@
# #
FROM php:5.6-apache FROM php:5.6-apache
MAINTAINER kev<noreply@easypi.info> MAINTAINER kev <noreply@easypi.info>
RUN a2enmod rewrite RUN a2enmod rewrite
RUN set -xe \ RUN set -xe \
&& apt-get update \ && apt-get update \
&& apt-get install -y libcurl3-dev \ && apt-get install -y build-essential \
libfreetype6 \ libcurl3 \
libfreetype6-dev \ libcurl3-dev \
libjpeg62-turbo \ libfreetype6 \
libfreetype6-dev \
libicu52 \
libicu-dev \
libjpeg62-turbo \
libjpeg62-turbo-dev \ libjpeg62-turbo-dev \
libmcrypt-dev \ libmcrypt4 \
libmcrypt4 \ libmcrypt-dev \
libpng12-dev \ libpng12-0 \
libpng12-dev \ libpng12-dev \
libxslt-dev \ libxslt1.1 \
zziplib-bin \ libxslt1-dev \
zlib1g-dev \ zlib1g \
libicu-dev \ zlib1g-dev \
g++ \ zziplib-bin \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \ && docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-configure intl \ && docker-php-ext-install gd \
&& docker-php-ext-install gd mcrypt mbstring pdo_mysql \ intl \
&& docker-php-ext-install intl \ mbstring \
&& docker-php-ext-install xsl \ mcrypt \
&& docker-php-ext-install zip \ pdo_mysql \
&& apt-get purge -y --auto-remove libcurl3-dev \ xsl \
libfreetype6-dev \ zip \
&& curl -sSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& apt-get purge -y --auto-remove build-essential \
libcurl3-dev \
libfreetype6-dev \
libicu-dev \
libjpeg62-turbo-dev \ libjpeg62-turbo-dev \
libmcrypt-dev \ libmcrypt-dev \
libpng12-dev \ libpng12-dev \
libpng12-dev \ libxslt1-dev \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN echo 'always_populate_raw_post_data = -1\nmax_execution_time = 240\nmax_input_vars = 1500\nupload_max_filesize = 32M\npost_max_size = 32M' > /usr/local/etc/php/conf.d/typo3.ini
WORKDIR /usr/src RUN { \
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer echo 'always_populate_raw_post_data = -1';\
echo 'max_execution_time = 240'; \
echo 'max_input_vars = 1500'; \
echo 'upload_max_filesize = 32M'; \
echo 'post_max_size = 32M'; \
} > /usr/local/etc/php/conf.d/typo3.ini
WORKDIR /var/www/html WORKDIR /var/www/html
ENV MAGENTO_VER 2.1.0 ENV MAGENTO_VER 2.1.0
ENV MAGENTO_MD5 aab11e6b443be7179410b195b2099819 ENV MAGENTO_MD5 aab11e6b443be7179410b195b2099819
ENV MAGENTO_URL https://github.com/magento/magento2/archive/$MAGENTO_VER.tar.gz ENV MAGENTO_URL https://github.com/magento/magento2/archive/$MAGENTO_VER.tar.gz
ENV MAGENTO_FILE magento.tar.gz ENV MAGENTO_FILE magento.tar.gz
RUN curl -sSL ${MAGENTO_URL} -o ${MAGENTO_FILE} \
RUN set -xe \
&& curl -sSL ${MAGENTO_URL} -o ${MAGENTO_FILE} \
&& echo "${MAGENTO_MD5} ${MAGENTO_FILE}" | md5sum -c \ && echo "${MAGENTO_MD5} ${MAGENTO_FILE}" | md5sum -c \
&& tar xzf ${MAGENTO_FILE} --strip 1 \ && tar xzf ${MAGENTO_FILE} --strip 1 \
&& rm ${MAGENTO_FILE} \ && rm ${MAGENTO_FILE} \
&& chown -R www-data:www-data . \ && chown -R www-data:www-data . \
&& /etc/init.d/apache2 restart \
&& composer install && composer install

View File

@ -1,12 +1,14 @@
magento magento
======= =======
`Magento` Community Edition is open source eCommerce software used to power your [Magento][1] Community Edition is open source eCommerce software used to power your
online store and can be downloaded for free. Developers can modify the core online store and can be downloaded for free. Developers can modify the core
code and add features and functionality by installing extensions from the code and add features and functionality by installing extensions from the
Magento Connect marketplace. Magento Connect marketplace.
``` ## docker-compose.yml
```yaml
magento: magento:
image: vimagick/magento image: vimagick/magento
ports: ports:
@ -22,3 +24,5 @@ mysql:
- MYSQL_DATABASE=magento - MYSQL_DATABASE=magento
restart: always restart: always
``` ```
[1]: https://magento.com/

View File

@ -1,10 +1,13 @@
magento: magento:
build: . image: vimagick/magento
net: host ports:
- "8000:80"
links:
- mysql
restart: always restart: always
mysql: mysql:
image: mysql image: mysql
net: host
environment: environment:
- MYSQL_ROOT_PASSWORD=root - MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=magento - MYSQL_DATABASE=magento