[
https://issues.apache.org/jira/browse/STREAMPIPES-523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17515296#comment-17515296
]
ASF subversion and git services commented on STREAMPIPES-523:
-------------------------------------------------------------
Commit b6ddff71a8a84556b179710aac95bd533c46fdb2 in incubator-streampipes's
branch refs/heads/dev from Patrick Wiener
[ https://gitbox.apache.org/repos/asf?p=incubator-streampipes.git;h=b6ddff7 ]
[STREAMPIPES-523] remap base url of core if SP_DEBUG=true
> Enable connect adapter service development when core runs in Docker
> -------------------------------------------------------------------
>
> Key: STREAMPIPES-523
> URL: https://issues.apache.org/jira/browse/STREAMPIPES-523
> Project: StreamPipes
> Issue Type: Improvement
> Components: Pipeline Elements
> Reporter: Patrick Wiener
> Priority: Major
>
> Opposed to processors and sinks that are passively registered by the core of
> StreamPipes via the service discovery feature in Consul, connect adapter
> services actively register their service description at the core service.
> Therefore, the URL of the core is retrieved via Consul which points to the
> core container IP address (commonly "http://172.x.x.x:8030") which can't be
> resolved from the local IDE environment.
> *Option A*
> Adapter developers can manipulate the docker-compose description of the
> backend service by adding an "SP_HOST" environment variable with their local
> machine's IP address. Thereby, the core of StreamPipes registers under this
> IP at Consul which can be resolved from the local IDE, e.g., with the URL
> "http://192.x.x.x:8030".
> *Option B*
> Adapter developers can simply use the "SP_DEBUG=true" environment variable in
> the run configuration of a connect adapter service to remap the retrieved URL
> from "http://172.x.x.x:8030" to "http://localhost:8030".
>
> Note: this allows applies for hybrid service definitions containing, e.g.,
> extensions-all-jvm, as it contains adapter services that currently try to
> actively register at the core.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)