Compare commits

...

1 commit

Author SHA1 Message Date
95790530c8 Modified setup for use with Magento 2 2016-08-15 19:08:57 -05:00
3 changed files with 1963 additions and 19 deletions

View file

@ -4,8 +4,8 @@ FROM debian:jessie
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y apache2 libapache2-mod-php5 \ RUN apt-get update && apt-get install -y apache2 libapache2-mod-php5 \
mysql-server php5 php5-mysql php5-mcrypt php5-curl php5-gd phpmyadmin vim \ lsb-release php5 php5-mysql php5-mcrypt php5-curl php5-gd php5-xsl php5-intl \
wget curl git cron phpmyadmin vim wget curl git cron
# Configure apache # Configure apache
COPY ./config/apache2.conf /etc/apache2/apache2.conf COPY ./config/apache2.conf /etc/apache2/apache2.conf
@ -13,11 +13,18 @@ RUN chmod 644 /etc/apache2/apache2.conf
RUN a2enmod rewrite RUN a2enmod rewrite
# Configure MySQL # Configure MySQL
COPY ./config/my.cnf /etc/mysql/my.cnf RUN wget "http://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb"
RUN chmod 644 /etc/mysql/my.cnf RUN dpkg -i mysql-apt-config_0.7.3-1_all.deb && apt-get update && apt-get \
RUN service mysql start && mysql -u root --execute="GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '';" install -y mysql-server
#COPY ./config/my.cnf /etc/mysql/my.cnf
#RUN chmod 644 /etc/mysql/my.cnf
#RUN service mysql restart && mysql -u root --execute="CREATE USER admin IDENTIFIED BY ''; GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' IDENTIFIED BY '';"
EXPOSE 3306 EXPOSE 3306
# Configure PHP
COPY ./config/php.ini /etc/php5/apache2/php.ini
RUN chmod 644 /etc/php5/apache2/php.ini
# Configure PHPMyAdmin # Configure PHPMyAdmin
COPY ./config/config.inc.php /etc/phpmyadmin/config.inc.php COPY ./config/config.inc.php /etc/phpmyadmin/config.inc.php
RUN chmod 644 /etc/phpmyadmin/config.inc.php RUN chmod 644 /etc/phpmyadmin/config.inc.php
@ -27,18 +34,6 @@ RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" &&
php composer-setup.php && \ php composer-setup.php && \
php -r "unlink('composer-setup.php');" php -r "unlink('composer-setup.php');"
# Install magerun
RUN wget https://files.magerun.net/n98-magerun.phar && \
mv n98-magerun.phar /usr/bin/ && \
echo 'alias magerun="php -f /usr/bin/n98-magerun.phar --"' >> /root/.bashrc
# Install Accolade Magerun Tools
RUN mkdir -p /usr/local/share/n98-magerun/modules && \
git clone https://github.com/Accolades/MagerunTools.git /usr/local/share/n98-magerun/modules/MagerunTools
# Install Magento Mess Detector
RUN git clone https://github.com/AOEpeople/mpmd.git /usr/local/share/n98-magerun/modules/mpmd
# Install modman # Install modman
RUN wget -q --no-check-certificate -O - https://raw.github.com/colinmollenhour/modman/master/modman-installer | bash && \ RUN wget -q --no-check-certificate -O - https://raw.github.com/colinmollenhour/modman/master/modman-installer | bash && \
mv ~/bin/modman /usr/local/bin/modman mv ~/bin/modman /usr/local/bin/modman

1949
config/php.ini Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,8 +1,8 @@
app: app:
build: . build: .
ports: ports:
- 80:80 - 8000:80
- 3306:3306 - 8001:3306
volumes: volumes:
- /var/lib/mysql - /var/lib/mysql
- ./public_html:/var/www/html - ./public_html:/var/www/html