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

docker-entrypoint.sh: enable XTRACE if ENTRYPOINT_XTRACE environment … #1302

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jan-matejka
Copy link

…variable is non-empty

@tianon
Copy link
Member

tianon commented Dec 27, 2024

I usually just do docker run ... bash -x docker-entrypoint.sh ... when I need this 😅

@jan-matejka
Copy link
Author

I usually just do docker run ... bash -x docker-entrypoint.sh ... when I need this 😅

  1. That will not be effective through exec gosu ...
  2. GHA do not allow to override CMD from argv so you have to build a custom image for that.

@tianon
Copy link
Member

tianon commented Jan 7, 2025

The simplest workaround for 1. is to use --user (which is a good idea anyhow), and the simplest workaround for 2. is to use run: docker run ... instead of https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idservices (which is just combining the YAML arguments into a docker run command for you).

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

Successfully merging this pull request may close these issues.

2 participants