Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Run CLI as user 33:33 to match Debian's www-data #1388

Merged
merged 3 commits into from
Mar 7, 2019

Conversation

candrews
Copy link
Contributor

@candrews candrews commented Mar 6, 2019

Issue: #1383

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

Makes progress on #1383, Travis now gets further.

@borekb
Copy link
Member

borekb commented Mar 6, 2019

That looks good. Does that impact non-Linux OS's in some way? I'll try to run some tests on macOS shortly.

@candrews
Copy link
Contributor Author

candrews commented Mar 6, 2019

I just added a commit to not do sudo, chown, and chgrp. That's all unnecessary since the tests already run as the right user. And doing those operations undoes the user 33:33 change from the other commit in the PR, causing failures.

@borekb
Copy link
Member

borekb commented Mar 6, 2019

@candrews I'll go get some sleep but if you want me to run something tomorrow morning, let me know. I'm looking forward to seeing all tests pass again :)

…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
@candrews
Copy link
Contributor Author

candrews commented Mar 6, 2019

With these changes, it's down to 19 errors and 16 skipped. So that's a nice improvement!

@borekb can you please take a look?

@borekb
Copy link
Member

borekb commented Mar 7, 2019

Thanks!

@borekb borekb merged commit 3e99c8f into versionpress:master Mar 7, 2019
@borekb
Copy link
Member

borekb commented Mar 10, 2019

Follow-up PR to this is #1397 which also sets the correct user for the mount points inside the Dockerfile. That resolves issues around test-logs and similar.

@borekb borekb changed the title Run cli as user 33:33 to match www-data from versionpress/wordpress:php7.2-apache Run CLI as user 33:33 to match Debian's www-data Apr 14, 2019
@borekb borekb self-assigned this Apr 14, 2019
@borekb borekb added the scope: dev-infrastructure Build scripts, IDE settings, CI, Docker dev stack, testing, tooling, etc. label Apr 14, 2019
@borekb borekb added this to the 4.0 milestone Apr 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
scope: dev-infrastructure Build scripts, IDE settings, CI, Docker dev stack, testing, tooling, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants