Skip to content

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

2 participants