Skip to content

Allow command line arguments to be passed to the python script #2

Closed

Description

@8ryn

It would be helpful to be able to pass command line arguments via "args" in the services values.yaml file to the entrypoint python script.

I believe the easiest way to do that would be to replace CMD [...] at the bottom of the Dockerfile with:

ENTRYPOINT ["bash", "-c", "${IOC}/start.sh \"$@\"", "--"]

Then within ioc/start.sh replace line 34 with:
exec bash ${CONFIG_DIR}/start.sh "$@"

and line 45 with:
exec python ${STARTUP_PYTHON} "$@"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions