Skip to content

Commit

Permalink
upgrade opencart to 2.2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vimagick committed Mar 8, 2016
1 parent e90f8a9 commit 3dede28
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion drupal/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ drupal:
ports:
- "8888:80"
volumes:
- /var/www/html/sites
- /var/www/html/sites/default
restart: always
1 change: 1 addition & 0 deletions mariadb/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ mariadb:
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=wordpress
restart: always
13 changes: 8 additions & 5 deletions opencart/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,23 @@ MAINTAINER kev<[email protected]>

RUN a2enmod rewrite

RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libmcrypt-dev \
RUN set -xe \
&& apt-get update \
&& apt-get install -y libpng12-dev libjpeg-dev libmcrypt-dev \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install gd mcrypt mbstring mysqli zip

WORKDIR /var/www/html

ENV OPENCART_VER 2.1.0.2
ENV OPENCART_MD5 7a4d93410284bd3dc1fc148718efedb0
ENV OPENCART_VER 2.2.0.0
ENV OPENCART_MD5 a9219f14b3483f867ea48218a0bf215d
ENV OPENCART_URL https://github.com/opencart/opencart/archive/${OPENCART_VER}.tar.gz
ENV OPENCART_FILE opencart.tar.gz

RUN curl -sSL ${OPENCART_URL} -o ${OPENCART_FILE} \
&& echo "${OPENCART_MD5} ${OPENCART_FILE}" | md5sum -c \
RUN set -xe \
&& curl -sSL ${OPENCART_URL} -o ${OPENCART_FILE} \
&& echo "${OPENCART_MD5} ${OPENCART_FILE}" | md5sum -c \
&& tar xzf ${OPENCART_FILE} --strip 2 --wildcards '*/upload/' \
&& mv config-dist.php config.php \
&& mv admin/config-dist.php admin/config.php \
Expand Down

0 comments on commit 3dede28

Please sign in to comment.