Pass additional arguments to --entrypoint

I have the following workflow:

jobs:
  test:
    runs-on: ununtu-latest
    services:
      nsqd:
        image: nsqio/nsq
        options: --entrypoint /bin/nsqd
        ports:
          - 4150:4150
          - 4151:4151
      nsqlookupd:
        image: nsqio/nsq
        options: --entrypoint /bin/nsqlookupd
        ports:
          - 4160:4160
          - 4161:4161
    env:
      NSQD_HOST: localhost
      NSQLOOKUPD_HOST: localhost
    steps:
      - uses: actions/checkout@master
      - name: Set up Python
        uses: actions/setup-python@v2
        ....

How to pass an additional argument to the /bin/nsqd command in nsqd service? For example:

/bin/nsq --lookupd-tcp-address=nsqlookupd:4160

I’ve tried:

options: --entrypoint="/bin/nsq --lookupd-http-address=nsqlookupd:4161"

But it raises:

Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"[/bin/nsqd, --lookupd-http-address=nsqlookupd:4161]\": stat [/bin/nsqd, --lookupd-http-address=nsqlookupd:4161]: no such file or directory": unknown

Google doesn’t help :frowning:

Hello! I’m not an expert just walking around here. But I guess this would help you

https://github.community/t5/GitHub-Actions/How-do-I-properly-override-a-service-entrypoint/m-p/44258/highlight/true#M5696

1 Like