forked from thewca/worldcubeassociation.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure PHP Docker to work with deprecated MySQL code (thewca#7468)
* Activate correct MySQL bindings in PHP container * Remove all mentions of Vagrant
- Loading branch information
Showing
12 changed files
with
36 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
#!/bin/sh -e | ||
|
||
# sleep as a hack to wait for vagrant to mount the /vagrant directory, which is | ||
# needed for our screen session | ||
sudo su <%= @username %> -c 'sleep 10; ~/startall'& | ||
sudo su <%= @username %> -c '~/startall'& | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
FROM php:5.6.14-fpm | ||
# Targeting 5.6 instead of a specific version is consistent with our current Chef setup | ||
# which in turn targets "php5.6-*" packages in the ondrej repo. | ||
FROM php:5.6-fpm | ||
EXPOSE 9000 | ||
COPY './docker/php-fpm.conf' "/usr/local/etc/php-fpm.conf" | ||
COPY './docker/php.ini' "/usr/local/etc/php/php.ini" | ||
COPY './docker/php-mysqli.ini' "/usr/local/etc/php/conf.d/docker-php-ext-mysqli.ini" | ||
RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql | ||
RUN docker-php-ext-install mysql mysqli mbstring pdo pdo_mysql | ||
# configure mysql bindings to use mysqlnd service, which is consistent with our current Chef setup | ||
RUN docker-php-ext-configure pdo_mysql --with-pdo-mysql=mysqlnd | ||
RUN docker-php-ext-configure mysql --with-pdo-mysql=mysqlnd | ||
RUN docker-php-ext-configure mysqli --with-pdo-mysql=mysqlnd |