Skip to content

Commit 0069ae0

Browse files
committed
Try skipping SSL in container.
1 parent 95a5217 commit 0069ae0

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ services:
7777

7878
volumes:
7979
- ./tools/local-env/mysql-init.sql:/docker-entrypoint-initdb.d/mysql-init.sql
80+
- ./tools/local-env/test/cnf:/etc/my.cnf.d/custom.cnf
8081
- mysql:/var/lib/mysql
8182

8283
# For compatibility with PHP versions that don't support the caching_sha2_password auth plugin used in MySQL 8.0.

tools/local-env/scripts/install.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ wp_cli( `config set SCRIPT_DEBUG ${process.env.LOCAL_SCRIPT_DEBUG} --raw --type=
2424
wp_cli( `config set WP_ENVIRONMENT_TYPE ${process.env.LOCAL_WP_ENVIRONMENT_TYPE} --type=constant` );
2525
wp_cli( `config set WP_DEVELOPMENT_MODE ${process.env.LOCAL_WP_DEVELOPMENT_MODE} --type=constant` );
2626

27-
wp_cli( 'config set MYSQL_CLIENT_FLAGS MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT --raw --type=constant' );
28-
2927
// Read in wp-tests-config-sample.php, edit it to work with our config, then write it to wp-tests-config.php.
3028
const testConfig = readFileSync( 'wp-tests-config-sample.php', 'utf8' )
3129
.replace( 'youremptytestdbnamehere', 'wordpress_develop_tests' )

tools/local-env/test.cnf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[mysql]
2+
skip-ssl

0 commit comments

Comments
 (0)