Fix 2 docker build problems: volume name too short, dubious ownership#5009
Open
cweiske wants to merge 2 commits intophp:masterfrom
Open
Fix 2 docker build problems: volume name too short, dubious ownership#5009cweiske wants to merge 2 commits intophp:masterfrom
cweiske wants to merge 2 commits intophp:masterfrom
Conversation
Passing "." as path does not work with docker 20.10.24: > $ make > docker run --rm -v .:/var/www/en -w /var/www -u 1000:1000 php/doc-en > docker: Error response from daemon: create .: volume name is too short, names should be at least two alphanumeric characters. > See 'docker run --help'. > make: *** [Makefile:22: xhtml] Fehler 125
The current user and group ID are passed passed to the docker build command and the ownership of the cloned directories are changed to them. This gets rid of git's "dubious ownership" error. Without this changes I got an error: > $ make > docker run --rm -v :/var/www/en -w /var/www -u 1000:1000 php/doc-en > configure.php on PHP 8.2.29, libxml 2.9.14 > > fatal: detected dubious ownership in repository at '/var/www/doc-base' > To add an exception for this directory, call: > > git config --global --add safe.directory /var/www/doc-base > doc-base/temp clean up FAILED. > make: *** [Makefile:22: xhtml] Fehler 1 Resolves: php#4645
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When trying to build on a Debian 12 installation with docker 20.10.24 I get multiple errors:
and
The two commits in this PR fix both errors.
Related: #4645