initial impl
the build was successful Details

This commit is contained in:
Jan Christian Grünhage 2018-01-27 22:31:45 +01:00
parent 86b928adf1
commit 89a26d5f63
Signed by: jcgruenhage
GPG Key ID: 6594C449C633D10C
9 changed files with 33 additions and 0 deletions

7
.drone.yml Normal file
View File

@ -0,0 +1,7 @@
pipeline:
docker:
image: plugins/docker
repo: docker.jcg.re/base-php
registry: docker.jcg.re
secrets: [docker_username, docker_password]
tags: latest

5
Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM docker.jcg.re/base-caddy
RUN apk add --no-cache \
php7-fpm
ADD root /
EXPOSE 8888

0
plugins.txt Normal file
View File

3
root/etc/Caddyfile Normal file
View File

@ -0,0 +1,3 @@
:8888
root /phpapp
fastcgi / /tmp/php-fpm.sock php

View File

@ -0,0 +1,11 @@
[global]
daemonize = no
[www]
listen = /tmp/php-fpm.sock
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
chdir = /

1
root/etc/s6.d/caddy/finish Executable file
View File

@ -0,0 +1 @@
#!/bin/sh

2
root/etc/s6.d/caddy/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
su-exec ${UID}:${GID} caddy --conf /etc/Caddyfile

1
root/etc/s6.d/php/finish Executable file
View File

@ -0,0 +1 @@
#!/bin/sh

3
root/etc/s6.d/php/run Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
chown -R ${UID}:${GID} /phpapp /var/log/php7
su-exec ${UID}:${GID} php-fpm7