-
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
Showing
17 changed files
with
130 additions
and
72,863 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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
.composer/cache/* | ||
mount/data/mysql/* | ||
mount/var/log/* | ||
mount/var/log/* | ||
mount/var/log/nginx/* | ||
mount/etc/nginx/sites-available/* | ||
mount/etc/nginx/sites-enable/* | ||
!mount/etc/nginx/sites-enable/default | ||
!mount/etc/nginx/sites-available/default | ||
mount/var/log/mysql/* | ||
images/php/7/local/* | ||
!.gitkeep | ||
docker-compose.yml |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,43 @@ | ||
# VERSION 0.0.1 | ||
FROM ubuntu:14.04 | ||
MAINTAINER aimsam<[email protected]> | ||
|
||
# install packages | ||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y software-properties-common && \ | ||
locale-gen en_US.UTF-8 && \ | ||
export LANG=en_US.UTF-8 && \ | ||
apt-add-repository -y ppa:ondrej/php5-5.6 && \ | ||
apt-get update && \ | ||
apt-get install -y php5-fpm php5-curl php5-mysqlnd php5-mcrypt php5-gd php5-pgsql php5-memcached git && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# connfiguration | ||
RUN sed -E -i "s/^listen\ =.+?$/listen = 0.0.0.0:9000/" /etc/php5/fpm/pool.d/www.conf && \ | ||
sed -E -i "s/^pm\ =.+?$/pm = ondemand/" /etc/php5/fpm/pool.d/www.conf && \ | ||
sed -E -i "s/^pm\.max_children\ =.+?$/pm\.max_children = 2/" /etc/php5/fpm/pool.d/www.conf && \ | ||
sed -E -i "s/^;pm\.process_idle_timeout\ =.+?$/pm\.process_idle_timeout=10s/" /etc/php5/fpm/pool.d/www.conf && \ | ||
sed -E -i "s/^error_log\ =.+?$/error_log = \/dev\/stdout/" /etc/php5/fpm/php-fpm.conf && \ | ||
sed -E -i "s/^post_max_size\ =.+?$/post_max_size = 100M/" /etc/php5/fpm/php.ini && \ | ||
sed -E -i "s/^upload_max_filesize\ =.+?$/upload_max_filesize = 100M/" /etc/php5/fpm/php.ini | ||
|
||
# for development | ||
RUN sed -E -i "s/^display_errors\ .+?$/display_errors = On/" /etc/php5/fpm/php.ini && \ | ||
sed -E -i "s/^error_reporting\ .+?$/error_reporting = E_ALL \& \~E_DEPRECATED \& \~E_STRICT \& \~E_NOTICE/" /etc/php5/fpm/php.ini | ||
|
||
# phpunit & composer | ||
ADD https://phar.phpunit.de/phpunit.phar /usr/local/bin/phpunit | ||
ADD https://getcomposer.org/composer.phar /usr/local/bin/composer | ||
|
||
COPY docker-entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /usr/local/bin/phpunit /usr/local/bin/composer /entrypoint.sh && \ | ||
mkdir /var/htdocs && \ | ||
chown -R www-data:www-data /var/htdocs | ||
|
||
WORKDIR /var/htdocs | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
EXPOSE 9000 | ||
|
||
CMD ["php5-fpm", "-F"] |
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,5 @@ | ||
build: | ||
docker build -t aimsam/php5 . | ||
|
||
clean: | ||
docker rmi aimsam/php5 |
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,15 @@ | ||
#!/bin/bash | ||
set -e | ||
if [ ! -d /root/.ssh ] | ||
then | ||
mkdir /root/.ssh | ||
chmod 700 /root/.ssh | ||
fi | ||
|
||
if [ -d /root/ssh-outside ] | ||
then | ||
cp -rf /root/ssh-outside/* /root/.ssh | ||
chmod 600 /root/.ssh/* | ||
fi | ||
|
||
exec "$@" |
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,21 @@ | ||
# VERSION 0.0.1 | ||
FROM aimsam/ubuntu | ||
MAINTAINER aimsam<[email protected]> | ||
|
||
#VOLUME $PWD/local/:/home/work/local | ||
# phpunit & composer | ||
ADD https://phar.phpunit.de/phpunit.phar /usr/local/bin/phpunit | ||
ADD https://getcomposer.org/composer.phar /usr/local/bin/composer | ||
|
||
COPY docker-entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /usr/local/bin/phpunit /usr/local/bin/composer /entrypoint.sh && \ | ||
mkdir /var/htdocs && \ | ||
chown -R www-data:www-data /var/htdocs | ||
|
||
WORKDIR /var/htdocs | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
|
||
EXPOSE 9000 | ||
|
||
CMD /home/work/local/php-7.0.6/sbin/php-fpm -F |
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,5 @@ | ||
build: | ||
docker build -t aimsam/php7 . | ||
|
||
clean: | ||
docker rmi aimsam/php7 |
File renamed without changes.
File renamed without changes.
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 @@ | ||
redis.conf |
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,4 @@ | ||
requirepass foobared | ||
save 900 1 | ||
save 300 10 | ||
save 60 10000 |
Binary file not shown.
Oops, something went wrong.