Skip to content

Commit 5f3ac8c

Browse files
authored
Merge pull request #1 from carlbastos/development
Initial PR including files + fwd templates.
2 parents f815c83 + d254d50 commit 5f3ac8c

14 files changed

Lines changed: 312 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Sync Docker Hub Description
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- README.md
9+
- .github/workflows/docker-description.yml
10+
11+
jobs:
12+
docker-description:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Sync Docker Hub Description
18+
uses: peter-evans/dockerhub-description@v2
19+
env:
20+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
21+
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
22+
DOCKERHUB_REPOSITORY: kooldev/wordpress

.github/workflows/docker.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
version: [ 7.4-fpm-alpine, 7.3-fpm-alpine, 7.2-fpm-alpine, 7.1-fpm-alpine ]
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@master
15+
16+
- name: Build image
17+
run: docker build --pull -t kooldev/wordpress:${{ matrix.version }} ${{ matrix.version }}
18+
19+
- name: Test docker images
20+
run: |
21+
docker run kooldev/wordpress:${{ matrix.version }} php -v
22+
docker run kooldev/wordpress:${{ matrix.version }} php /usr/src/wordpress/index.php
23+
24+
- name: Push to Hub
25+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
26+
env:
27+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
28+
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
29+
run: |
30+
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
31+
docker push kooldev/wordpress:${{ matrix.version }}

7.1-fpm-alpine/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM wordpress:php7.1-fpm-alpine
2+
3+
ENV PHP_MEMORY_LIMIT=256M \
4+
PHP_UPLOAD_MAX_FILESIZE=50M \
5+
PHP_POST_MAX_SIZE=50M \
6+
PHP_MAX_EXECUTION_TIME=30
7+
8+
ARG DOCKERIZE_VERSION=v0.6.1
9+
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
10+
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
11+
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
12+
&& cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini
13+
14+
COPY kool.ini /kool/kool.tmpl
15+
16+
ENTRYPOINT [ "dockerize", "-template", "/kool/kool.tmpl:/usr/local/etc/php/conf.d/kool.ini", "docker-entrypoint.sh" ]

7.1-fpm-alpine/kool.ini

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[PHP]
2+
3+
; Maximum amount of memory a script may consume
4+
; http://php.net/memory-limit
5+
memory_limit = {{ .Env.PHP_MEMORY_LIMIT }}
6+
7+
; Maximum allowed size for uploaded files.
8+
; http://php.net/upload-max-filesize
9+
upload_max_filesize = {{ .Env.PHP_UPLOAD_MAX_FILESIZE }}
10+
11+
; Maximum size of POST data that PHP will accept.
12+
; Its value may be 0 to disable the limit. It is ignored if POST data reading
13+
; is disabled through enable_post_data_reading.
14+
; http://php.net/post-max-size
15+
post_max_size = {{ .Env.PHP_POST_MAX_SIZE }}
16+
17+
; Maximum execution time of each script, in seconds
18+
; http://php.net/max-execution-time
19+
; Note: This directive is hardcoded to 0 for the CLI SAPI
20+
max_execution_time = {{ .Env.PHP_MAX_EXECUTION_TIME }}

7.2-fpm-alpine/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM wordpress:php7.2-fpm-alpine
2+
3+
ENV PHP_MEMORY_LIMIT=256M \
4+
PHP_UPLOAD_MAX_FILESIZE=50M \
5+
PHP_POST_MAX_SIZE=50M \
6+
PHP_MAX_EXECUTION_TIME=30
7+
8+
ARG DOCKERIZE_VERSION=v0.6.1
9+
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
10+
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
11+
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
12+
&& cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini
13+
14+
COPY kool.ini /kool/kool.tmpl
15+
16+
ENTRYPOINT [ "dockerize", "-template", "/kool/kool.tmpl:/usr/local/etc/php/conf.d/kool.ini", "docker-entrypoint.sh" ]

7.2-fpm-alpine/kool.ini

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[PHP]
2+
3+
; Maximum amount of memory a script may consume
4+
; http://php.net/memory-limit
5+
memory_limit = {{ .Env.PHP_MEMORY_LIMIT }}
6+
7+
; Maximum allowed size for uploaded files.
8+
; http://php.net/upload-max-filesize
9+
upload_max_filesize = {{ .Env.PHP_UPLOAD_MAX_FILESIZE }}
10+
11+
; Maximum size of POST data that PHP will accept.
12+
; Its value may be 0 to disable the limit. It is ignored if POST data reading
13+
; is disabled through enable_post_data_reading.
14+
; http://php.net/post-max-size
15+
post_max_size = {{ .Env.PHP_POST_MAX_SIZE }}
16+
17+
; Maximum execution time of each script, in seconds
18+
; http://php.net/max-execution-time
19+
; Note: This directive is hardcoded to 0 for the CLI SAPI
20+
max_execution_time = {{ .Env.PHP_MAX_EXECUTION_TIME }}

7.3-fpm-alpine/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM wordpress:php7.3-fpm-alpine
2+
3+
ENV PHP_MEMORY_LIMIT=256M \
4+
PHP_UPLOAD_MAX_FILESIZE=50M \
5+
PHP_POST_MAX_SIZE=50M \
6+
PHP_MAX_EXECUTION_TIME=30
7+
8+
ARG DOCKERIZE_VERSION=v0.6.1
9+
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
10+
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
11+
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
12+
&& cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini
13+
14+
COPY kool.ini /kool/kool.tmpl
15+
16+
ENTRYPOINT [ "dockerize", "-template", "/kool/kool.tmpl:/usr/local/etc/php/conf.d/kool.ini", "docker-entrypoint.sh" ]

7.3-fpm-alpine/kool.ini

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[PHP]
2+
3+
; Maximum amount of memory a script may consume
4+
; http://php.net/memory-limit
5+
memory_limit = {{ .Env.PHP_MEMORY_LIMIT }}
6+
7+
; Maximum allowed size for uploaded files.
8+
; http://php.net/upload-max-filesize
9+
upload_max_filesize = {{ .Env.PHP_UPLOAD_MAX_FILESIZE }}
10+
11+
; Maximum size of POST data that PHP will accept.
12+
; Its value may be 0 to disable the limit. It is ignored if POST data reading
13+
; is disabled through enable_post_data_reading.
14+
; http://php.net/post-max-size
15+
post_max_size = {{ .Env.PHP_POST_MAX_SIZE }}
16+
17+
; Maximum execution time of each script, in seconds
18+
; http://php.net/max-execution-time
19+
; Note: This directive is hardcoded to 0 for the CLI SAPI
20+
max_execution_time = {{ .Env.PHP_MAX_EXECUTION_TIME }}

7.4-fpm-alpine/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM wordpress:php7.4-fpm-alpine
2+
3+
ENV PHP_MEMORY_LIMIT=256M \
4+
PHP_UPLOAD_MAX_FILESIZE=50M \
5+
PHP_POST_MAX_SIZE=50M \
6+
PHP_MAX_EXECUTION_TIME=30
7+
8+
ARG DOCKERIZE_VERSION=v0.6.1
9+
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
10+
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
11+
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
12+
&& cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini
13+
14+
COPY kool.ini /kool/kool.tmpl
15+
16+
ENTRYPOINT [ "dockerize", "-template", "/kool/kool.tmpl:/usr/local/etc/php/conf.d/kool.ini", "docker-entrypoint.sh" ]

7.4-fpm-alpine/kool.ini

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[PHP]
2+
3+
; Maximum amount of memory a script may consume
4+
; http://php.net/memory-limit
5+
memory_limit = {{ .Env.PHP_MEMORY_LIMIT }}
6+
7+
; Maximum allowed size for uploaded files.
8+
; http://php.net/upload-max-filesize
9+
upload_max_filesize = {{ .Env.PHP_UPLOAD_MAX_FILESIZE }}
10+
11+
; Maximum size of POST data that PHP will accept.
12+
; Its value may be 0 to disable the limit. It is ignored if POST data reading
13+
; is disabled through enable_post_data_reading.
14+
; http://php.net/post-max-size
15+
post_max_size = {{ .Env.PHP_POST_MAX_SIZE }}
16+
17+
; Maximum execution time of each script, in seconds
18+
; http://php.net/max-execution-time
19+
; Note: This directive is hardcoded to 0 for the CLI SAPI
20+
max_execution_time = {{ .Env.PHP_MAX_EXECUTION_TIME }}

0 commit comments

Comments
 (0)