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

Re: CMD with env vars



Try it with everything after -c as a single argument.

On Thu, Feb 25, 2016 at 2:36 PM, Philippe Lafoucrière <philippe lafoucriere tech-angels com> wrote:
Ok, last try:

    spec:
      containers:
      - command:
        - /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

but still not expended:

/ # ps | more
PID   USER     TIME   COMMAND
    1 root       0:00 /bin/sh -c /nsqd --broadcast-address=$(hostname -i) --lookupd-tcp-address=172.30.82.189:4160 --worker-id=1 --data-path=/data
:(

_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users



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