-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f04d25b
commit 886f1fd
Showing
4 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.magento | ||
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |