Skip to content

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

Open
jan-matejka wants to merge 1 commit into
docker-library:masterfrom
jan-matejka:f/xtrace
Open

docker-entrypoint.sh: enable XTRACE if ENTRYPOINT_XTRACE environment …#1302
jan-matejka wants to merge 1 commit into
docker-library:masterfrom
jan-matejka:f/xtrace

Conversation

@jan-matejka

Copy link
Copy Markdown

…variable is non-empty

@tianon

tianon commented Dec 27, 2024

Copy link
Copy Markdown
Member

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

@jan-matejka

Copy link
Copy Markdown
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

tianon commented Jan 7, 2025

Copy link
Copy Markdown
Member

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