-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
Do not use lifetime option as Redis connection timeout
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
run.config: | ||
engine: php | ||
engine.config: | ||
runtime: php-7.4 | ||
extensions: | ||
- apcu | ||
- ctype | ||
- curl | ||
- dom | ||
- fileinfo | ||
- gd | ||
- gmp | ||
- gettext | ||
- imagick | ||
- iconv | ||
- intl | ||
- json | ||
- mbstring | ||
- memcached | ||
- phar | ||
- pdo | ||
- pdo_mysql | ||
- pdo_pgsql | ||
- pdo_sqlite | ||
- session | ||
- simplexml | ||
- sqlite3 | ||
- tokenizer | ||
- yaml | ||
- xml | ||
- xmlwriter | ||
- zip | ||
- zlib | ||
- mongodb | ||
- redis | ||
zend_extensions: | ||
- opcache | ||
dev_zend_extensions: | ||
# Removed xdebug (will be back when Xdebug 2.7.0 is stable) | ||
# add: | ||
# - xdebug | ||
rm: | ||
- opcache | ||
extra_packages: | ||
- autoconf | ||
- freefonts | ||
- freetype2 | ||
- fontconfig | ||
- mysql-client | ||
# - postgresql94-client | ||
- re2c | ||
- sqlite3 | ||
extra_steps: | ||
#=========================================================================== | ||
# PSR extension compilation | ||
- | | ||
( | ||
CURRENT_FOLDER=$(pwd) | ||
rm -fR $CURRENT_FOLDER/build/php-psr | ||
cd $CURRENT_FOLDER/build | ||
git clone --depth=1 https://github.com/jbboehr/php-psr.git | ||
cd php-psr | ||
set -e | ||
phpize | ||
./configure --with-php-config=$(which php-config) | ||
make -j"$(getconf _NPROCESSORS_ONLN)" | ||
make install | ||
cd $CURRENT_FOLDER | ||
rm -fR $CURRENT_FOLDER/build/php-psr | ||
unset CURRENT_FOLDER | ||
) | ||
- echo -e 'extension=psr.so' >> "/data/etc/php/dev_php.ini" | ||
#=========================================================================== | ||
# Msgpack extension compilation | ||
- | | ||
( | ||
CURRENT_FOLDER=$(pwd) | ||
rm -fR $CURRENT_FOLDER/build/msgpack-php | ||
cd $CURRENT_FOLDER/build | ||
git clone --depth=1 https://github.com/msgpack/msgpack-php.git | ||
cd msgpack-php | ||
set -e | ||
phpize | ||
./configure --with-php-config=$(which php-config) | ||
make -j"$(getconf _NPROCESSORS_ONLN)" | ||
make install | ||
cd $CURRENT_FOLDER | ||
rm -fR $CURRENT_FOLDER/build/msgpack-php | ||
unset CURRENT_FOLDER | ||
) | ||
- echo -e 'extension=msgpack.so' >> "/data/etc/php/dev_php.ini" | ||
#=========================================================================== | ||
# Igbinary extension compilation | ||
- | | ||
( | ||
CURRENT_FOLDER=$(pwd) | ||
rm -fR $CURRENT_FOLDER/build/igbinary | ||
cd $CURRENT_FOLDER/build | ||
git clone --depth=1 https://github.com/igbinary/igbinary.git | ||
cd igbinary | ||
set -e | ||
phpize | ||
./configure --with-php-config=$(which php-config) | ||
make -j"$(getconf _NPROCESSORS_ONLN)" | ||
make install | ||
cd $CURRENT_FOLDER | ||
rm -fR $CURRENT_FOLDER/build/igbinary | ||
unset CURRENT_FOLDER | ||
) | ||
- echo -e 'extension=igbinary.so' >> "/data/etc/php/dev_php.ini" | ||
#=========================================================================== | ||
# Zephir Parser | ||
- | | ||
( | ||
CURRENT_FOLDER=$(pwd) | ||
rm -fR $CURRENT_FOLDER/build/php-zephir-parser | ||
cd $CURRENT_FOLDER/build | ||
git clone --depth=1 https://github.com/phalcon/php-zephir-parser.git | ||
cd php-zephir-parser | ||
set -e | ||
phpize | ||
./configure --with-php-config=$(which php-config) | ||
make -j"$(getconf _NPROCESSORS_ONLN)" | ||
make install | ||
cd $CURRENT_FOLDER | ||
rm -fR $CURRENT_FOLDER/build/php-zephir-parser | ||
unset CURRENT_FOLDER | ||
) | ||
- echo -e 'extension=zephir_parser.so' >> "/data/etc/php/dev_php.ini" | ||
#=========================================================================== | ||
# This is here so that Phalcon can be used right after compilation | ||
- echo -e 'extension=phalcon.so' >> "/data/etc/php/dev_php.ini" | ||
#=========================================================================== | ||
# Options for session, opcache and apcu | ||
- echo -e 'session.save_path="/tmp"' >> "/data/etc/php/dev_php.ini" | ||
- echo -e 'opcache.enable_cli=1' >> "/data/etc/php/dev_php.ini" | ||
- echo -e 'apcu.enabled=1' >> "/data/etc/php/dev_php.ini" | ||
- echo -e 'apcu.enable_cli=1' >> "/data/etc/php/dev_php.ini" | ||
- echo -e 'apc.enabled=1' >> "/data/etc/php/dev_php.ini" | ||
- echo -e 'apc.enable_cli=1' >> "/data/etc/php/dev_php.ini" | ||
#=========================================================================== | ||
# Get the Zephir phar | ||
- wget --no-clobber -O /data/bin/zephir https://github.com/phalcon/zephir/releases/download/0.12.21/zephir.phar | ||
- chmod +x /data/bin/zephir | ||
|
||
data.memcached: | ||
image: nanobox/memcached:1.4 | ||
|
||
data.mongodb: | ||
image: mongo:4.0 | ||
|
||
data.mysql: | ||
image: nanobox/mysql:5.7 | ||
|
||
data.postgres: | ||
image: nanobox/postgresql:9.5 | ||
|
||
data.redis: | ||
image: nanobox/redis:3.2 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.