Skip to content

Commit

Permalink
Adiciona Magento 1 com módulo Rede
Browse files Browse the repository at this point in the history
  • Loading branch information
netojoaobatista committed Mar 18, 2019
1 parent f04d25b commit 886f1fd
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.mysql
2 changes: 2 additions & 0 deletions magento1/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.magento
.git
33 changes: 33 additions & 0 deletions magento1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FROM php:5.6-apache
LABEL maintainer="João Batista Neto <[email protected]>"
LABEL version="1.0.0"
LABEL description="Imagem Docker para Magento 1.9 com módulo de pagamento da Rede"

RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y git unzip \
libfreetype6-dev \
libjpeg62-turbo-dev \
libxml2-dev

RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install pdo \
pdo_mysql \
gd \
soap

RUN usermod -u 1001 www-data
RUN groupmod -g 1001 www-data

RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php composer-setup.php
RUN php -r "unlink('composer-setup.php');"
RUN mv composer.phar /usr/bin/composer && chmod +x /usr/bin/composer

USER www-data
RUN git clone https://github.com/OpenMage/magento-mirror.git /var/www/html
RUN git clone https://github.com/DevelopersRede/magento1.git /tmp/modulo
RUN cp -R /tmp/modulo/* /var/www/html

RUN composer install

USER root
32 changes: 32 additions & 0 deletions magento1/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: '3'

services:
mysql:
image: mysql:5.6
container_name: modulo.magento-1.9.mysql
environment:
MYSQL_DATABASE: magento
MYSQL_USER: modulo
MYSQL_PASSWORD: rede
MYSQL_ROOT_PASSWORD: rede
networks:
- modulo-rede
volumes:
- .mysql:/var/lib/mysql:z

magento:
image: magento:1.9
build: .
container_name: modulo.magento-1.9
ports:
- "80:80"
links:
- mysql
depends_on:
- mysql
networks:
- modulo-rede

networks:
modulo-rede:
driver: bridge

0 comments on commit 886f1fd

Please sign in to comment.