I'm looking to create a stream on startup of spring-xd container without having to manually enter it via xd-shell. I want to;
1. have xd-singlenode startup (invoked via bash)
2. have a pre-created stream definition (e.g. http --port=8080 | file
) deployed after the container starts up
I know there's a url to invoke (curl -POST http://127.0.0.1:9393/streams?name=mystream&definition=http|file
) but I'm having troubles with specifying additional configuration (like --port=8080
) and the pipe (|
) is causing some troubles too.
thanks