We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi Mentors :-)
I would like to know if there is any ways to add some extras PHP5 extensions ? In my case, I would like to add memcached.
Thanks for your anwser :-)
The text was updated successfully, but these errors were encountered:
The APP_INIT environment variable can be used for this.
APP_INIT
First, write a script as the following:
docker/app-init:
docker/app-init
#!/bin/bash apt-get update apt-get -y upgrade apt-get -y install php5-gd RETVAL=$? if [ $RETVAL -ne 0 ]; then exit $RETVAL fi ...
Second, specify the script as the value of the APP_INIT_SCRIPT environment variable as the following:
APP_INIT_SCRIPT
docker-compose.yml:
docker-compose.yml
version: '2' services: app: image: "phpmentors/symfony-app:php55" ... environment: APP_INIT_SCRIPT: "docker/app-init" ...
If the value of the APP_INIT_SCRIPT environment variable is relative path, /var/app will be added to the beginning of the value.
/var/app
Sorry, something went wrong.
iteman
No branches or pull requests
Hi Mentors :-)
I would like to know if there is any ways to add some extras PHP5 extensions ?
In my case, I would like to add memcached.
Thanks for your anwser :-)
The text was updated successfully, but these errors were encountered: