Specifying startup arguments for GHA service containers #52675
Replies: 3 comments
-
It was answered in 2020 on https://github.com/orgs/community/discussions/26688#discussioncomment-3252877 by a engineer was was on the Code to Cloud team at the time, it's not possible. @chrispat was tagged then, any updates in the meantime if this would be supported in the future? If I understand it correctly, the workarounds on those SO posts are:
I think those are the only reasonable possibilities. We're getting around it with the service we want to use, because it can load startup options from a config file. So we:
Which feels like a bit much. |
Beta Was this translation helpful? Give feedback.
-
This seems like a basic option that GitHub Actions needs to provide. As the author of the question stated, the arguments to the CircleCI allows you to easily specify the command that goes after the image name with the It seems quite silly that end users are needing to build their own custom images still after years, because GitHub Actions workflow syntax does not support a |
Beta Was this translation helpful? Give feedback.
-
One use case: I want to be able to pass in |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
General
Body
Hello,
I have a workflow that requires custom arguments to be passed to a service container when it starts up. Is this possible in GHA? Specifically, I'm looking for something that corresponds to the
docker create [OPTIONS] IMAGE [COMMAND] [ARG...]
form of docker create (see the docs).I'd expect it to look something like this:
which would be equivalent to the following:
docker create company/image:tag binary-name arg1 arg2
I've searched the internet, and all I've found are these two Stack Overflow posts:
Both state that this isn't supported, but neither of them cite an official source. I'd like to know:
Beta Was this translation helpful? Give feedback.
All reactions