Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
initial php version for magento2 projects
Browse files Browse the repository at this point in the history
Signed-off-by: BlackEagle <[email protected]>
  • Loading branch information
BlackIkeEagle committed Apr 28, 2017
0 parents commit a051eca
Show file tree
Hide file tree
Showing 12 changed files with 132 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 5.6/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM dockerwest/php:5.6

COPY ./scripts /
RUN /install.sh
RUN rm /install*
4 changes: 4 additions & 0 deletions 5.6/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
docker pull dockerwest/php:5.6

docker build --no-cache -t dockerwest/php-magento2:5.6 .
19 changes: 19 additions & 0 deletions 5.6/scripts/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

set -e

# install packages
apt-get update

apt-get install -y \
php5.6-gd php5.6-common php5.6-intl php5.6-mbstring php5.6-mcrypt \
php5.6-mysql php5.6-readline php5.6-soap php5.6-xsl

apt-get clean -y

sed -e 's/\(max_nesting_level\).*/\1=1000/' \
-i /etc/php/5.6/mods-available/xdebug.ini

# install magerun
curl -o /usr/local/bin/magerun https://files.magerun.net/n98-magerun2-latest.phar
chmod +x /usr/local/bin/magerun
5 changes: 5 additions & 0 deletions 7.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM dockerwest/php:7.0

COPY ./scripts /
RUN /install.sh
RUN rm /install*
4 changes: 4 additions & 0 deletions 7.0/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
docker pull dockerwest/php:7.0

docker build --no-cache -t dockerwest/php-magento2:7.0 .
19 changes: 19 additions & 0 deletions 7.0/scripts/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

set -e

# install packages
apt-get update

apt-get install -y \
php7.0-gd php7.0-common php7.0-intl php7.0-mbstring php7.0-mcrypt \
php7.0-mysql php7.0-readline php7.0-soap php7.0-xsl

apt-get clean -y

sed -e 's/\(max_nesting_level\).*/\1=1000/' \
-i /etc/php/7.0/mods-available/xdebug.ini

# install magerun
curl -o /usr/local/bin/magerun https://files.magerun.net/n98-magerun2-latest.phar
chmod +x /usr/local/bin/magerun
5 changes: 5 additions & 0 deletions 7.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM dockerwest/php:7.1

COPY ./scripts /
RUN /install.sh
RUN rm /install*
4 changes: 4 additions & 0 deletions 7.1/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
docker pull dockerwest/php:7.1

docker build --no-cache -t dockerwest/php-magento2:7.1 .
19 changes: 19 additions & 0 deletions 7.1/scripts/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

set -e

# install packages
apt-get update

apt-get install -y \
php7.1-gd php7.1-common php7.1-intl php7.1-mbstring php7.1-mcrypt \
php7.1-mysql php7.1-readline php7.1-soap php7.1-xsl

apt-get clean -y

sed -e 's/\(max_nesting_level\).*/\1=1000/' \
-i /etc/php/7.1/mods-available/xdebug.ini

# install magerun
curl -o /usr/local/bin/magerun https://files.magerun.net/n98-magerun2-latest.phar
chmod +x /usr/local/bin/magerun
26 changes: 26 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
The MIT License (MIT)
=====================

Copyright © `2017` `DockerWest contributors`

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the “Software”), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
PHP image for magento2
======================

PHP container for magento2 applications. Magento2 is not installed in the Image.

Versions
--------

The following versions are available:
- 5.6 : only security updates so you should use a higher version
- 7.0
- 7.1

License
-------

MIT License (MIT). See [License File](LICENSE.md) for more information.
5 changes: 5 additions & 0 deletions buildall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh

( cd 5.6; ./build.sh )
( cd 7.0; ./build.sh )
( cd 7.1; ./build.sh )

0 comments on commit a051eca

Please sign in to comment.