-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4b95eb
commit bdab263
Showing
90 changed files
with
932 additions
and
489 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
version: '3.1' | ||
|
||
services: | ||
wordpress: | ||
image: wordpress | ||
restart: always | ||
ports: | ||
- 8890:80 | ||
environment: | ||
WORDPRESS_DB_HOST: mysql | ||
WORDPRESS_DB_PASSWORD: example | ||
ABSPATH: /usr/src/wordpress/ | ||
WORDPRESS_DEBUG: 1 | ||
WORDPRESS_CONFIG_EXTRA: | | ||
define( 'SCRIPT_DEBUG', true ); | ||
volumes: | ||
- wordpress_data:/var/www/html | ||
- ../../:/var/www/html/wp-content/plugins/amp | ||
- ../../node_modules/@wordpress/e2e-tests/plugins:/var/www/html/wp-content/plugins/gutenberg-test-plugins | ||
- ../../node_modules/@wordpress/e2e-tests/mu-plugins:/var/www/html/wp-content/mu-plugins | ||
depends_on: | ||
- mysql | ||
|
||
cli: | ||
image: wordpress:cli | ||
restart: always | ||
user: xfs | ||
volumes: | ||
- wordpress_data:/var/www/html | ||
- ../../:/var/www/html/wp-content/plugins/amp | ||
depends_on: | ||
- mysql | ||
- wordpress | ||
|
||
mysql: | ||
image: mysql:5.7 | ||
restart: always | ||
environment: | ||
MYSQL_ROOT_PASSWORD: example | ||
MYSQL_DATABASE: wordpress_test | ||
|
||
volumes: | ||
wordpress_data: |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
COMPOSER_VERSION=`curl -Ls -w %{url_effective} -o /dev/null https://github.com/composer/composer/releases/latest | rev | cut -d '/' -f 1 | rev` | ||
|
||
# Exit if any command fails | ||
set -e | ||
|
||
# Include useful functions | ||
. "$(dirname "$0")/includes.sh" | ||
|
||
|
||
# Change to the expected directory | ||
cd "$(dirname "$0")/../.." | ||
|
||
# Check if composer is installed | ||
if [ "$TRAVIS" != "true" ] && ! command_exists "composer"; then | ||
if ask "$(error_message "Composer isn't installed, would you like to download and install it automatically?")" Y; then | ||
echo -en $(status_message "Installing Composer..." ) | ||
download "https://getcomposer.org/installer" | bash >/dev/null 2>&1 | ||
mkdir -p /usr/local/bin | ||
mv composer.phar /usr/local/bin/composer | ||
echo ' done!' | ||
else | ||
echo -e $(error_message "") | ||
echo -e $(error_message "Please install Composer manually, then re-run the setup script to continue.") | ||
echo -e $(error_message "Composer installation instructions can be found here: $(action_format "https://getcomposer.org/doc/00-intro.md")") | ||
fi | ||
|
||
exit 1 | ||
fi | ||
|
||
# Check if the current Composer version is up to date. | ||
if [ "$TRAVIS" != "true" ] && ! [[ "$(composer --version)" == "Composer version $COMPOSER_VERSION "* ]]; then | ||
echo -en $(status_message "Updating Composer..." ) | ||
composer self-update | ||
echo ' done!' | ||
fi | ||
|
||
|
||
# Install/update packages | ||
echo -e $(status_message "Installing and updating Composer packages..." ) | ||
composer install |
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
Oops, something went wrong.