Skip to content
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

Executing docker on typo3-docs:local does not evaluate bash arguments? #72

Closed
garvinhicking opened this issue Nov 14, 2023 · 2 comments
Closed

Comments

@garvinhicking
Copy link
Contributor

I created my custom typo3-docs:local docker container via:

docker build -t typo3-docs:local .

That works. However when I call this:

docker run --rm --user=$(id -u):$(id -g) --volume ${PWD}:/project typo3-docs:local --version

I would expect the output showing the version of the called entrypoint.sh marker, in the end running this inside the container:

/opt/guides/vendor/bin/guides --version

That works if I execute it in my manual shell. But even when I add the output to the entrypoint.sh file, I can see that --version is passed along, but still it doesn't seem to take effect:

  # ... snippet of entrypoint.sh at the end
  echo "Inline bash execution with commands $@"
  echo sh -c "$@"
  sh -c "$@"

This yields:

Inline bash execution with commands /opt/guides/vendor/bin/guides --version
sh -c /opt/guides/vendor/bin/guides --version
  0/10 [>---------------------------]   0%

In menu_doc.html.twig line 6:

  An exception has been thrown during the rendering of a template ("No root document entry was found").


In ProjectNode.php line 133:

  No root document entry was found


run [--output OUTPUT] [--input-file INPUT-FILE] [--input-format INPUT-FORMAT] [--output-format OUTPUT-FORMAT] [--log-path LOG-PATH] [--fail-on-log] [--theme THEME] [--progress|--no-progress] [--] [<input>]

(Don't mind the error message, that is due to Issue #53)

@garvinhicking
Copy link
Contributor Author

I do not know the specific reason why this is how it is, but it's fixed if I changed the entrypoint.sh file to do this:

php "$@"

instead of this:

sh -c "$@"

This is adressed in PR #73

@garvinhicking
Copy link
Contributor Author

(Resolved through PR 73, at least on macOS :) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant