[doc-en] master: Pass full local path to docker
| From: | Christian Weiske | Date: | Thu, 05 Mar 2026 14:24:24 +0000 |
| Subject: | [doc-en] master: Pass full local path to docker | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-23167@lists.php.net to get a copy of this message | ||
Author: Christian Weiske (cweiske)
Date: 2026-03-05T15:24:21+01:00
Commit: https://github.com/php/doc-en/commit/1f3033eaee3000bb7d18a322c5e780d84e11cb42
Raw diff: https://github.com/php/doc-en/commit/1f3033eaee3000bb7d18a322c5e780d84e11cb42.diff
Pass full local path to docker
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
Changed paths:
M Makefile
Diff:
diff --git a/Makefile b/Makefile
index 06fb38cb2072..ae8f8f7faab1 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ CURRENT_GID := $(shell id -g)
# volumes to our Docker runs.
#
-PATHS := -v .:/var/www/en
+PATHS := -v ${PWD}:/var/www/en
ifneq ($(wildcard ../doc-base/LICENSE),)
PATHS += -v ${PWD}/../doc-base:/var/www/doc-base
endif