Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions apache/2.4.38-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM httpd:2.4.38-alpine

# Enable vhosts and fcgi proxy
RUN sed -ri \
-e 's!^#(LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so)!\1!g' \
-e 's!^#(LoadModule proxy_module modules/mod_proxy.so)!\1!g' \
-e 's!^#(Include conf/extra/httpd-vhosts.conf)!\1!g' \
-e '/LoadModule rewrite_module/s/^#//g' \
-e '/LoadModule alias_module/s/^#//g' \
-e '/LoadModule deflate_module/s/^#//g' \
-e '/LoadModule expires_module/s/^#//g' \
/usr/local/apache2/conf/httpd.conf

COPY ./vhost.conf /usr/local/apache2/conf/extra/httpd-vhosts.conf
5 changes: 5 additions & 0 deletions apache/2.4.38-alpine/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3"
services:
httpd:
image: symbiote/httpd:2.4.38-alpine
build: .
20 changes: 20 additions & 0 deletions apache/2.4.38-alpine/vhost.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>

<VirtualHost *:80>

DocumentRoot /var/www/html

LogFormat "%h %l %u %t \"%r\" %>s %b" common

ErrorLog /dev/stderr
CustomLog /dev/stdout common

<FilesMatch \.php$>
SetHandler "proxy:fcgi://php:9000"
</FilesMatch>

</VirtualHost>
36 changes: 36 additions & 0 deletions php-cli/7.1-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
FROM symbiote/php-fpm:7.1-alpine

RUN apk add --no-cache \
git \
openssh \
yarn

ENV COMPOSER_ALLOW_SUPERUSER 1
ENV COMPOSER_HOME "/usr/local/composer"
ENV COMPOSER_VERSION 1.8.0
ENV PATH "${COMPOSER_HOME}/vendor/bin:${PATH}"

RUN mkdir -p $COMPOSER_HOME \
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
#&& php -r "if (hash_file('sha384', 'composer-setup.php') === '93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
&& php composer-setup.php --install-dir /usr/bin --filename=composer \
&& php -r "unlink('composer-setup.php');" \
#&& composer global require phing/phing && chown -R www-data ${COMPOSER_HOME}
&& curl -sLO https://www.phing.info/get/phing-2.16.3.phar \
&& chmod +x phing-2.16.3.phar \
&& mv phing-2.16.3.phar /usr/local/bin/phing

COPY sspak.phar /usr/local/bin/sspak

COPY memory.ini /usr/local/etc/php/conf.d/memory.ini

RUN mkdir -p /var/www/.ssh && \
chmod 700 /var/www/.ssh && \
ssh-keyscan github.com >> /var/www/.ssh/known_hosts && \
ssh-keyscan bitbucket.org >> /var/www/.ssh/known_hosts && \
ssh-keyscan gitlab.com >> /var/www/.ssh/known_hosts && \
ssh-keyscan gitlab.symbiote.com.au >> /var/www/.ssh/known_hosts && \
chown -R 1000:1000 /var/www/.ssh && \
chmod 600 /var/www/.ssh/known_hosts

CMD ["/bin/bash"]
5 changes: 5 additions & 0 deletions php-cli/7.1-alpine/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3"
services:
php-cli:
image: symbiote/php-cli:7.1-alpine
build: .
1 change: 1 addition & 0 deletions php-cli/7.1-alpine/memory.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
memory_limit=384M
Binary file added php-cli/7.1-alpine/sspak.phar
Binary file not shown.
Binary file added php-cli/7.1-alpine/yarn-v1.13.0.tar.gz
Binary file not shown.
44 changes: 44 additions & 0 deletions php-cli/7.3-alpine-timecop/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
FROM symbiote/php-fpm:7.3-alpine

RUN apk add --no-cache \
git \
openssh \
yarn \
&& apk add --no-cache --virtual .build-deps \
autoconf \
build-base \
g++ \
&& pecl install timecop-beta \
&& apk del .build-deps

ENV COMPOSER_ALLOW_SUPERUSER 1
ENV COMPOSER_HOME "/usr/local/composer"
ENV COMPOSER_VERSION 1.8.0
ENV PHING_VERSION 2.16.3
ENV PATH "${COMPOSER_HOME}/vendor/bin:${PATH}"

RUN mkdir -p $COMPOSER_HOME \
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
#&& php -r "if (hash_file('sha384', 'composer-setup.php') === '93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
&& php composer-setup.php --install-dir /usr/bin --filename=composer \
&& php -r "unlink('composer-setup.php');" \
&& chown -R www-data ${COMPOSER_HOME}

RUN curl -Ol https://www.phing.info/get/phing-${PHING_VERSION}.phar \
&& mv phing-${PHING_VERSION}.phar /usr/local/bin/phing \
&& chmod +x /usr/local/bin/phing

COPY sspak.phar /usr/local/bin/sspak

COPY memory.ini /usr/local/etc/php/conf.d/memory.ini

RUN mkdir -p /var/www/.ssh && \
chmod 700 /var/www/.ssh && \
ssh-keyscan github.com >> /var/www/.ssh/known_hosts && \
ssh-keyscan bitbucket.org >> /var/www/.ssh/known_hosts && \
ssh-keyscan gitlab.com >> /var/www/.ssh/known_hosts && \
ssh-keyscan gitlab.symbiote.com.au >> /var/www/.ssh/known_hosts && \
chown -R 1000:1000 /var/www/.ssh && \
chmod 600 /var/www/.ssh/known_hosts

CMD ["/bin/bash"]
5 changes: 5 additions & 0 deletions php-cli/7.3-alpine-timecop/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3"
services:
php-cli:
image: symbiote/php-cli:7.3-alpine-timecop
build: .
1 change: 1 addition & 0 deletions php-cli/7.3-alpine-timecop/memory.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
memory_limit=384M
Binary file added php-cli/7.3-alpine-timecop/phing-2.16.3.phar
Binary file not shown.
Binary file added php-cli/7.3-alpine-timecop/phing-latest.phar
Binary file not shown.
Binary file added php-cli/7.3-alpine-timecop/sspak.phar
Binary file not shown.
33 changes: 33 additions & 0 deletions php-cli/7.3-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FROM symbiote/php-fpm:7.3-alpine

RUN apk add --no-cache \
git \
openssh \
yarn

ENV COMPOSER_ALLOW_SUPERUSER 1
ENV COMPOSER_HOME "/usr/local/composer"
ENV COMPOSER_VERSION 1.8.0
ENV PATH "${COMPOSER_HOME}/vendor/bin:${PATH}"

RUN mkdir -p $COMPOSER_HOME \
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
#&& php -r "if (hash_file('sha384', 'composer-setup.php') === '93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
&& php composer-setup.php --install-dir /usr/bin --filename=composer \
&& php -r "unlink('composer-setup.php');" \
&& composer global require phing/phing && chown -R www-data ${COMPOSER_HOME}

COPY sspak.phar /usr/local/bin/sspak

COPY memory.ini /usr/local/etc/php/conf.d/memory.ini

RUN mkdir -p /var/www/.ssh && \
chmod 700 /var/www/.ssh && \
ssh-keyscan github.com >> /var/www/.ssh/known_hosts && \
ssh-keyscan bitbucket.org >> /var/www/.ssh/known_hosts && \
ssh-keyscan gitlab.com >> /var/www/.ssh/known_hosts && \
ssh-keyscan gitlab.symbiote.com.au >> /var/www/.ssh/known_hosts && \
chown -R 1000:1000 /var/www/.ssh && \
chmod 600 /var/www/.ssh/known_hosts

CMD ["/bin/bash"]
5 changes: 5 additions & 0 deletions php-cli/7.3-alpine/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3"
services:
php-cli:
image: symbiote/php-cli:7.3-alpine
build: .
1 change: 1 addition & 0 deletions php-cli/7.3-alpine/memory.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
memory_limit=384M
Binary file added php-cli/7.3-alpine/sspak.phar
Binary file not shown.
36 changes: 36 additions & 0 deletions php-cli/7.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
FROM symbiote/php-fpm:7.3

RUN apt-get update && apt-get install -y \
git \
&& pecl install timecop-beta

ENV COMPOSER_ALLOW_SUPERUSER 1
ENV COMPOSER_HOME "/usr/local/composer"
ENV COMPOSER_VERSION 1.8.0
ENV PATH "${COMPOSER_HOME}/vendor/bin:${PATH}"

RUN mkdir -p $COMPOSER_HOME \
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
#&& php -r "if (hash_file('sha384', 'composer-setup.php') === '93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
&& php composer-setup.php --install-dir /usr/bin --filename=composer \
&& php -r "unlink('composer-setup.php');" \
&& chown -R www-data ${COMPOSER_HOME}

RUN curl -Ol https://www.phing.info/get/phing-${PHING_VERSION}.phar \
&& mv phing-${PHING_VERSION}.phar /usr/local/bin/phing \
&& chmod +x /usr/local/bin/phing

COPY sspak.phar /usr/local/bin/sspak

COPY memory.ini /usr/local/etc/php/conf.d/memory.ini

RUN mkdir -p /var/www/.ssh && \
chmod 700 /var/www/.ssh && \
ssh-keyscan github.com >> /var/www/.ssh/known_hosts && \
ssh-keyscan bitbucket.org >> /var/www/.ssh/known_hosts && \
ssh-keyscan gitlab.com >> /var/www/.ssh/known_hosts && \
ssh-keyscan gitlab.symbiote.com.au >> /var/www/.ssh/known_hosts && \
chown -R 1000:1000 /var/www/.ssh && \
chmod 600 /var/www/.ssh/known_hosts

CMD ["/bin/bash"]
5 changes: 5 additions & 0 deletions php-cli/7.3/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3"
services:
php-fpm:
image: symbiote/php-cli:7.3
build: .
1 change: 1 addition & 0 deletions php-cli/7.3/memory.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
memory_limit=384M
Binary file added php-cli/7.3/sspak.phar
Binary file not shown.
8 changes: 4 additions & 4 deletions php-cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ FROM symbiote/php-fpm:7.3
RUN apt-get update && apt-get install -y git

ENV COMPOSER_ALLOW_SUPERUSER 1
ENV COMPOSER_HOME "/usr/local/composer"
ENV COMPOSER_HOME "/usr/local/composer"
ENV COMPOSER_VERSION 1.8.0
ENV PATH "${COMPOSER_HOME}/vendor/bin:${PATH}"

RUN mkdir -p $COMPOSER_HOME \
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php -r "if (hash_file('sha384', 'composer-setup.php') === 'baf1608c33254d00611ac1705c1d9958c817a1a33bce370c0595974b342601bd80b92a3f46067da89e3b06bff421f182') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
&& php composer-setup.php --install-dir /usr/bin --filename=composer \
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php -r "if (hash_file('sha384', 'composer-setup.php') === 'e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
&& php composer-setup.php --install-dir /usr/bin --filename=composer \
&& php -r "unlink('composer-setup.php');"

RUN composer global require phing/phing && chown -R www-data ${COMPOSER_HOME}
Expand Down
55 changes: 55 additions & 0 deletions php/7.1-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
FROM php:7.1-fpm-alpine

RUN apk add --no-cache \
bash \
freetype-dev \
gmp-dev \
icu-dev \
libxslt \
libjpeg-turbo-dev \
libmcrypt-dev \
libpng-dev \
libzip-dev \
mysql-client \
shadow \
ssmtp

RUN usermod -u 1000 www-data

# Installing all Symbiote standard libraries and PHP extentions
RUN apk add --no-cache --virtual .build-deps \
autoconf \
build-base \
g++ \
libxslt-dev \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install \
gd \
gmp \
intl \
mysqli \
mbstring \
mcrypt \
opcache \
pdo_mysql \
soap \
sockets \
xsl \
zip \
&& pecl install redis-4.0.1 \
&& pecl install xdebug \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor, this one doesn't have a version specified.

&& docker-php-ext-enable \
redis \
&& apk del .build-deps

ENV TZ=Australia/Melbourne

RUN echo $'[Date]\ndate.timezone = "Australia/Melbourne"' >> /usr/local/etc/php/conf.d/timezone.ini \
&& echo "mailhub=mailhog:1025\nUseTLS=NO\nFromLineOverride=YES" > /etc/ssmtp/ssmtp.conf \
&& echo "sendmail_path = /usr/sbin/ssmtp -t" > /usr/local/etc/php/conf.d/sendmail.ini \
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
&& mkdir -p /var/log/php \
&& chown www-data /var/log/php

COPY php.ini /usr/local/etc/php/php.ini
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
5 changes: 5 additions & 0 deletions php/7.1-alpine/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3"
services:
php-fpm:
image: symbiote/php-fpm:7.1-alpine
build: .
5 changes: 5 additions & 0 deletions php/7.1-alpine/php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

log_errors = On
error_log = /dev/stderr
post_max_size = 50M
upload_max_filesize = 50M
8 changes: 8 additions & 0 deletions php/7.1-alpine/xdebug.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
xdebug.remote_enable=on
xdebug.remote_autostart=on
xdebug.remote_handler=dbgp
xdebug.remote_connect_back=1
xdebug.profiler_enable_trigger=0
xdebug.var_display_max_depth=5
xdebug.var_display_max_children=256
xdebug.var_display_max_data=1024
28 changes: 28 additions & 0 deletions php/7.1-httpd-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM symbiote/php-fpm:7.1-alpine

RUN apk add --no-cache \
apache2 \
apache2-proxy \
bash \
supervisor

COPY ./supervisor.conf /etc/supervisor.conf

# Enable vhosts and fcgi proxy
RUN sed -ri \
-e 's!^#(LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so)!\1!g' \
-e 's!^#(LoadModule proxy_module modules/mod_proxy.so)!\1!g' \
-e 's!^#ServerName.*!ServerName localhost!g' \
-e '/LoadModule rewrite_module/s/^#//g' \
-e '/LoadModule alias_module/s/^#//g' \
-e '/LoadModule deflate_module/s/^#//g' \
-e '/LoadModule expires_module/s/^#//g' \
/etc/apache2/httpd.conf

COPY ./vhost.conf /etc/apache2/conf.d/httpd-vhosts.conf
RUN mkdir -p /run/apache2

EXPOSE 80

CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor.conf"]
WORKDIR /var/www/html
9 changes: 9 additions & 0 deletions php/7.1-httpd-alpine/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: "3"
services:
httpd:
image: symbiote/php:7.1-httpd-alpine
build: .
ports:
- "8888:80"
volumes:
- "./phpinfo.php:/var/www/html/phpinfo.php"
Loading