-
Notifications
You must be signed in to change notification settings - Fork 2k
Setup the $APACHE_RUN_DIR
and $APACHE_LOCK_DIR
directories in runtime
#330
New issue
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
Conversation
Hmm, when I read through #250, I thought |
--tmpfs /run
error$APACHE_RUN_DIR
and $APACHE_LOCK_DIR
directories in runtime
825d6da
to
eb7d5a3
Compare
Ok, back to the original problem, it's because there is no I changed my PR to creating and setup permissions on # setup directories and permissions
mkdir -p /run/lock
for dir in ${APACHE_RUN_DIR} ${APACHE_LOCK_DIR}
do
mkdir -p ${dir}
chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"
done |
ping @tianon |
Any updates? |
…me to avoid `--tmpfs /run` error Fixes docker-library#250 Signed-off-by: Tao Wang <[email protected]>
e42d2e3
to
a23b6fa
Compare
… to handle edge cases in a less hard-coded manner
Before: $ updog --tmpfs /run php:7-apache
AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:/var/lock/apache2 After: $ updog --tmpfs /run 7ecd801f4282
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.14. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.14. Set the 'ServerName' directive globally to suppress this message
[Thu Jan 26 00:27:51.493503 2017] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.10 (Debian) PHP/7.1.1 configured -- resuming normal operations
[Thu Jan 26 00:27:51.493548 2017] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND' |
- `bash`: 4.4.12 - `golang`: 1.7.5, 1.8rc3 - `mysql`: add automatic SSL support matching upstream behavior (docker-library/mysql#259) - `openjdk`: debian 9~b154-1 - `php`: auto-create `APACHE_RUN_DIR` and `APACHE_LOCK_DIR` at runtime if necessary (docker-library/php#330) - `postgres`: keep `include` for building against (docker-library/postgres#247) - `rabbitmq`: add Alpine variant (docker-library/rabbitmq#137) - `wordpress`: 4.7.2
Fix #250
Signed-off-by: Tao Wang [email protected]