[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: CMD with env vars




On Thu, Feb 25, 2016 at 2:07 PM, Clayton Coleman <ccoleman redhat com> wrote:
Isn't your env var WORKER_ID?  You only need the shell if you're
trying to use curly braces.  The parenthesis syntax is supported by
kube.

Sorry, typo, it's definitely WORKER_ID (but not working better).
Ok, I confirm it's working with parenthesis, otherwise:

PID   USER     TIME   COMMAND
    1 root       0:00 /bin/sh -c /nsqd --broadcast-address=`hostname -i` --lookupd-tcp-address=${NSLOOKUPD_SERVICE_HOST}:${NSLOOKUPD_PORT_4160_TCP_PORT} --worker-id=${WORKER_ID} --data-path=/data

My issue is actually with `hostname -i`, even with $(hostname -i), it's not expended.

thanks

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]