[JBoss] How to pass a docker variable to jboss-cli.sh?

Discussão em 'StackOverflow' iniciado por Stack, Setembro 1, 2021.

  1. Stack

    Stack Membro Participativo

    I have a variable in my jboss cli file, let's call it ${FOO}.

    I can see that the variable is set in my Dockerfile, if I:

    RUN echo ${FOO}


    I see the value printed.

    I have a foo.cli file which contains a line similar to:

    /system-property=foo:add(value="${FOO}")


    and when I run jboss-cli.sh foo.cli

    I get:

    Cannot resolve expression ${FOO}.


    Is there a way to pass a variable from Docker to the file argument to jboss-cli.sh ?

    I've tried removing the quotes around ${FOO} also in the system-property line but no luck.

    Continue reading...

Compartilhe esta Página