Skip to content

Commit

Permalink
7.4 preload support.
Browse files Browse the repository at this point in the history
  • Loading branch information
roquie committed Jul 2, 2020
1 parent f779086 commit 4af45b9
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [1.4.0] - 02-06-2020
### PHP 7.4 support
- Opcache preload support thought `$PHP_OPCACHE_PRELOAD`
- Using semver in image tag name.
- `opcache.file_update_protection=0` as default option instead of `2`.
- `7.4-1.4.0` tag

## [1.3.0] - 02-06-2020
### PHP 7.4 support
- Drop 7.2
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ ENV PHP_OPCACHE_SAVE_COMMENTS="0"
## Usage example

```bash
FROM roquie/docker-php-webapp:7.4-latest
FROM roquie/docker-php-webapp:7.4-1.4.0

COPY --chown=nginx:nginx . /srv/www
```
Expand All @@ -73,7 +73,7 @@ COPY --chown=nginx:nginx . /srv/www

* latest
* 7.3-latest
* 7.4-beta1
* 7.4-latest or 7.4-{semver}

## License

Expand Down
14 changes: 14 additions & 0 deletions conf/php.ini.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -1872,6 +1872,19 @@ opcache.optimization_level=0xFFFFFFFF
; optimizations.
;opcache.opt_debug_level=0

; Specifies a PHP script that is going to be compiled and executed at server
; start-up.
; http://php.net/opcache.preload
opcache.preload=$PHP_OPCACHE_PRELOAD

; Prevents caching files that are less than this number of seconds old. It
; protects from caching of incompletely updated files. In case all file updates
; on your site are atomic, you may increase performance by setting it to "0".
opcache.file_update_protection=0

; Absolute path used to store shared lockfiles (for *nix only).
opcache.lockfile_path=/tmp

[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
Expand All @@ -1898,3 +1911,4 @@ opcache.optimization_level=0xFFFFFFFF
; Local Variables:
; tab-width: 4
; End:

1 change: 1 addition & 0 deletions conf/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ then
fi

export PHP_OPCACHE_ENABLED=${PHP_OPCACHE_ENABLED:="1"}
export PHP_OPCACHE_PRELOAD=${PHP_OPCACHE_PRELOAD:=""}
export PHP_OPCACHE_SAVE_COMMENTS=${PHP_OPCACHE_SAVE_COMMENTS:="0"}

smalte build --scope PORT --scope NGINX\.* --scope PHP\.* \
Expand Down

0 comments on commit 4af45b9

Please sign in to comment.