Hi all, While it works on Mac/Windows hosts, a problem that still arise and we should be aware of is on Linux based development environments, where the developers host is a Linux OS. The problem occurs due to the fact that Docker on Linux cannot resolve host.docker.internal
Thus, the developer would need to adjust the env variable in the run Configuration manually: as per specified run config - fine for OSX/Windows: SP_PORT=6025;SP_HOST=host.docker.internal;SP_DEBUG=true Linux: SP_PORT=6025;SP_HOST=<HOST_IP or DOCKER0_BRIDGE>;SP_DEBUG=true On Linux, the developer has two options: 1) set SP_HOST to his/her host IP —> Problem: not agnostic to changing network environments 2) set SP_HOST to docker0 bridge IP —> should be agnostic to changing network environments [Preferred] He/she can look up the IP’s via ifconfig. We definitely need to update the documentation as well - not only in the repositories. Currently it states that you’d still need the env File plugin. Maybe because we haven’t updated the archetypes as well? One minor: Overall this solution only works with Intellij IDE - not Eclipse for instance. Patrick > Am 02.07.2020 um 15:38 schrieb Philipp Zehnder <[email protected]>: > > Hi, > > @Felix, very cool. Everything works fine and I merged it into dev. > > @Patrick, I removed the configurations for the EnvFile plugin in the > configuration XML, so we should not need this anymore. > > @All: Any ideas for naming the services? Because now we have a quite long > list in the run configurations. I would suggest to use a prefix for the > Processor Containers and the backend services? > The core and connect master already have the prefix “Apache StreamPipes”, but > I think this is a bit too long. Any ideas or suggestions? > > Philipp > >> On 2. Jul 2020, at 11:17, Felix John <[email protected]> wrote: >> >> Hi Patrick, >> >> good question. I just tested one configuration whilst disabling the >> "EnvFile" plugin. I worked out nicely. >> >> >> Greetings, >> Felix >> >> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ >> On Wednesday, 1. July 2020 22:03, Patrick Wiener <[email protected]> wrote: >> >>> Hi Felix, >>> >>> cool - that def helps the onboarding process for those using IntelliJ. >>> >>> Do these runConfigurations also need to have the env-File plugin >>> pre-installed to work? >>> >>> Patrick >>> >>>> Am 01.07.2020 um 18:34 schrieb Felix John [email protected]: >>>> Hi, >>>> I have added Run Configurations as project files for IntellJ so that you >>>> no longer have to create the configurations manually. The configuration >>>> files can be found here: .idea/runCofigurations. >>>> These files are only recognized by IntellJ if the folder >>>> .idea/runCofigurations is located in your working directory. Because the >>>> working directory setup in IntelliJ might vary from user to user, I added >>>> the folder .idea/runCofigurations to incubator-streampipes as well as >>>> incubator-streampipes-extension. >>>> This feature can be found in the branch run-configurations. >>>> Greetings, >>>> Felix >> >> >
