-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate Docs failed on MacBook Pro #1490
Comments
If I remember, I encountered a similar problem on my machine quite some time ago. Are you using Docker or Podman? |
Hi Oli, |
Ok i checked it with docker and it works with or without my changes. So I think we can take my changes into the code. We also have the composer docs:generate command in the composer.json and in the Documentation.rst. Maybe we can discuss this with the team. |
Is the group identifier really needed ? Literally, instead of adding it dirctly to the command call following check should be investigated: Lines 437 to 440 in 9a88349
First, does the condition not work on your side and leaves USERSET empty ? I would suggest to add a "DOCUMENTATION_USERSET" here in the condition setting the user along and replace ${USERSET} for the conrainer execution (run) call. Not sure about the impact doing it in USERSET directly which are used for all container executions. At least should be checked for all if the group is added. In the end, should only target for macos and docker usage (docker command available). |
The group is needed otherwise the Rendering Process is not working.
I added this in runTests.sh:
and extend the composer command: Maybe Windows/Linux can tested by someone else. |
Please note that for the render-guide repository the entrypoint of the Docker file: https://github.com/TYPO3-Documentation/render-guides/blob/main/entrypoint.sh#L107 does some "magic" to try unifying the system to work on macos, windows and linux due the specialties of Docker in each of them. We're open to optimizing this, if anyone has ideas on how it should be done so it works accross all systems without too much if-conditions ;) |
(Please note that in https://docs.typo3.org/other/t3docs/render-guides/main/en-us/Installation/Index.html#Setup_Docker we actually have a place that mentions this |
A common problem for macOS users running docker as non-root is that omitting a '--user' option makes our entrypoint.sh script try to on-the-fly create a matching user. (See FriendsOfTYPO3/tea#1490) This patch adds a verbose error message to hint at the problem.
A common problem for macOS users running docker as non-root is that omitting a '--user' option makes our entrypoint.sh script try to on-the-fly create a matching user. (See FriendsOfTYPO3/tea#1490) This patch adds a verbose error message to hint at the problem.
./Build/Scripts/runTests.sh -s docsGenerate
failed on MacBook Pro.Acceptance Criteria
./Build/Scripts/runTests.sh -s docsGenerate
is runningAdditional Information
Errormessage:
The text was updated successfully, but these errors were encountered: