| Environment | Details |
|---|---|
| TIMEZONE | Set Timezone (America/Montevideo, America/El_salvador) |
| WAITFOR_HOST | set name host |
| WAITFOR_PORT | set port for WAITFOR_HOST |
| MIGRATIONS | Enable artisan migrations. 1/0 |
| ARTISAN_COMMAND_OVERRIDE | Override artisan command execute when migration is enabled |
| PHP_MEMORY_LIMIT | Set memory limit in PHP (Example: 512M) - Default value -1(no limit) - Only in fpm images |
| FPM_MAX_CHILDREN | Set max concurrent clients fpm (Example: 250) - Default value 50 - Only in fpm images |
| Environment | Details |
|---|---|
| MAX_REQUEST_WORKER | Set max concurrent clients in Apache (Example: 500) - Default value 250 - Only in fpm images |
| SERVER_LIMIT | Set number server limit in Apache (Example: 20) - Default value 16 - Only in fpm images |
| Environment | Details |
|---|---|
| NGINX_WORKER_CONNECTION | Set max concurrent clients in Nginx (Example: 500) - Default value 1024 - Only in fpm images |
| NGINX_WORKER_PROCESSES | Set number process in Nginx (Example: 20) - Default value 1 - Only in fpm images |
| Environment | Details |
|---|---|
| NEXUS_COMPOSER_REPO | Url private composer repository |
| EXTRA_COMPOSER_COMMAND | Run extra composer command after install dependencies process |
oc process -f https://raw.githubusercontent.com/mvilche/php-s2i-openshift/master/php-s2i-template-openshift.yaml \
-p PHP_VERSION=php72 \
-p APP_NAME=miapp \
-p APP_REPO=https://github.com/myuser/php-composer-sample-app.git | oc create -f -
apiVersion: v1
data:
env: |-
APP_NAME=Lumen
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://miapp
APP_TIMEZONE=America/Montevideo
LOG_CHANNEL=stack
LOG_SLACK_WEBHOOK_URL=
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=database_name
DB_USERNAME=user
DB_PASSWORD=pass
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
kind: ConfigMap
metadata:
name: composer-env
docker build -t s2i-php:71 -f php71/Dockerfile.centos8 php71
s2i build https://github.com/my_phpapp.git s2i-php:71 myphp_app:latest --incremental
docker run -p 8080:8080 myphp_app:latest
https://github.com/openshift/source-to-image
docker run --name my_php -p 8080:8080 -d -v ./source:/var/www/html mvilche/php-s2i:73-alpine
Martin vilche
Content type
Image
Digest
Size
339.8 MB
Last updated
about 5 years ago
docker pull mvilche/php-s2i:80-centos