Skip to content

Commit

Permalink
Run cli as user 33:33 to match www-data from versionpress/wordpress:p…
Browse files Browse the repository at this point in the history
…hp7.2-apache

versionpress/wordpress:php7.2-apache is based on wordpress:php7.2-apache which is based on debian.

On Debian, www-data:www-data is 33:33
On Alpine (which is what cli is based on), www-data:www-data is 82:82
Therefore, when Alpine and Debian interact, one has to change to match the other.

See docker-library/wordpress#256 for details
  • Loading branch information
candrews committed Mar 6, 2019
1 parent ecbcd61 commit feebc5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ services:
- wpcli-cache:/var/www/.wp-cli:z
working_dir: /opt/versionpress/tests
command: ../vendor/bin/phpunit --verbose --colors -c phpunit.xml --testdox-text /var/opt/versionpress/logs/testdox.txt
user: "33:33"

tests-with-wordpress:
image: versionpress/wordpress:cli
Expand All @@ -83,6 +84,7 @@ services:
links:
- selenium-hub
- wordpress-for-tests
user: "33:33"

selenium-hub:
# Standalone Firefox is enough but could also be a full grid setup, hence the service name
Expand Down

0 comments on commit feebc5f

Please sign in to comment.