IBM Security SOAR

Expand all | Collapse all

Error in the entrypoint.sh APP HOST Development

  • 1.  Error in the entrypoint.sh APP HOST Development

    Posted Fri September 10, 2021 05:14 AM
    Hello community,

    I am attempting to follow the guide: Test the app, to test the app I have created. I have managed to create the docker image, although when I try to run it I get the following error:

    ---------------------------------------------
    sha256sum: /etc/rescircuits/app.config: No such file or directory
    /opt/rescircuits/entrypoint.sh: line 8: syntax error near unexpected token `done'
    /opt/rescircuits/entrypoint.sh: line 8: `done'
    ---------------------------------------------

    I have not made any changes to the dockerfile, although I have tried to alter the entrypoint.sh file. Both without altering and with altering I get the same error.

    Have any of you experienced this error?

    Thanks in advance

    ------------------------------
    August Tollerup
    ------------------------------


  • 2.  RE: Error in the entrypoint.sh APP HOST Development

    Posted Mon September 13, 2021 01:27 AM
    According to https://www.ibm.com/docs/en/rsoa-and-rp/39?topic=guide-test-app, the following sample is written.

    docker run -v /path/to/your/local/app.config:/etc/rescircuits/app.config resilient/fn_example:1.0.0
    I'm afraid that the error seems missing app.config since the error displays "sha256sum: /etc/rescircuits/app.config: No such file or directory"
    So I wonder you specify -v option : "-v <your app config file>:/etc/rescircuits/app.config" during execution.

    ------------------------------
    Yohji Amano
    ------------------------------



  • 3.  RE: Error in the entrypoint.sh APP HOST Development

    Posted Tue September 14, 2021 12:41 AM
    Just in case you specify "-v <your app config file>=/etc/rescircuits/app.config", you may encounter such an error.
    colon (:) is expected  instead of "=".

    ------------------------------
    Yohji Amano
    ------------------------------