Hi,
My understanding is that due to project complexity (indeed it' huge), Vagrant has been introduced because it provides portable virtual software development environments. I have seen similar situation earlier in another project I was involved into. My understanding is that simplification of project focusing on Maven modules, dependencies and Docker images may lead to such situation that Vagrant is not needed. Of course it's ideal situation and I was asking only if such option has been taken into consideration ?? Referring to pom files I was thinking of simplifying dependency management in SDC project. For example scope <scope>compile</scope> is default in Maven and does not have to be added to dependency declaration - Maven resolves it with no problem. It means that lines <scope>compile</scope> in pom files may be removed. Marcin ________________________________ From: Morales, Victor <[email protected]> Sent: Wednesday, March 7, 2018 3:13:40 PM To: Migdal, Marcin (Nokia - PL/Wroclaw); Lando,Michael Cc: [email protected] Subject: Re: [onap-discuss] SDC- local development - how to? Can you elaborate more your approach to stop using vagrant? we used vagrant as supporting tool for ensuring that the scripts work in a base distro (or minimal dependencies) besides its capability to recreate everything automatically. Regarding the attempt to optimize Maven files, AFAIK that is done by OParent project [1] Victor Morales [1] https://git.onap.org/oparent/ From: "Migdal, Marcin (Nokia - PL/Wroclaw)" <[email protected]> Date: Wednesday, March 7, 2018 at 5:39 AM To: Victor Morales <[email protected]>, "Lando,Michael" <[email protected]> Cc: "[email protected]" <[email protected]> Subject: Re: [onap-discuss] SDC- local development - how to? Hello, Have you thought about stop using Vagrant and focus only on pure Docker images? I think such approach could simplify few things - no setting env variables, coping configuration files. Has there also been an attempt to optimize Maven files? I can see that optimization of content can be easily achieved with no big effort. Expected outcome would be: - thin pom files - better readability - easier dependency management Marcin ________________________________ From: Morales, Victor <[email protected]> Sent: Tuesday, March 6, 2018 5:46:56 PM To: Migdal, Marcin (Nokia - PL/Wroclaw); Lando,Michael Cc: [email protected]; Wejs, Maciej (Nokia - PL/Wroclaw) Subject: Re: [onap-discuss] SDC- local development - how to? Hi Marcin, Just one additional think about the vagrant provider, even when VirtualBox is the default one you can use Libvirt. There is a script that installs it https://github.com/onap/integration/blob/master/bootstrap/vagrant-onap/tools/setup.sh [https://avatars2.githubusercontent.com/u/25933741?s=400&v=4]<https://github.com/onap/integration/blob/master/bootstrap/vagrant-onap/tools/setup.sh> onap/integration<https://github.com/onap/integration/blob/master/bootstrap/vagrant-onap/tools/setup.sh> github.com Mirror of https://gerrit.onap.org/r/#/admin/projects/integration The other alternative is to use the scripts in your own environment without having to install a Virtual Machine, I tried to explain that here http://onap.readthedocs.io/en/amsterdam/submodules/integration.git/bootstrap/vagrant-onap/doc/source/features/consuming_scripts.html I don’t recommend it because the dependencies will be installed in your host machine and eventually those can be omitted or assumed, resulting in heterogonous development environments. Regards, Victor Morales From: "Migdal, Marcin (Nokia - PL/Wroclaw)" <[email protected]> Date: Tuesday, March 6, 2018 at 5:31 AM To: "Lando,Michael" <[email protected]> Cc: "[email protected]" <[email protected]>, Victor Morales <[email protected]>, "Wejs, Maciej (Nokia - PL/Wroclaw)" <[email protected]> Subject: Re: [onap-discuss] SDC- local development - how to? Hello, Thank you for suggestions. Especially link: ttps://github.com/onap/integration/blob/master/bootstrap/vagrant-onap/lib/sdc<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_onap_integration_blob_master_bootstrap_vagrant-2Donap_lib_sdc&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=FYvXSElfSmWIXOeZxWIxQysejuz9-TXmaL6uftBh8MY&m=VAPoDqmxmOmnw1EkqbL2uctNhbGRdcJbyV9vf0nhXio&s=Cvh3_5oZToIdIor5o5At6iFiQSVfzGqg_eSLq1jEKpA&e=> is very useful. I can see that Vagrant is being used for local development with Virtual Box. Unfortunately, VirtaulBox is not a good option for running at machine hosting as OS Linux. What I am still thinking of is something simpler. I have JDK and Maven available at my machine (having Windows, Linux, Solaris, zOS, whatever) so that I am able to execute Maven's goals responsible for compilation, testing and packaging of SDC Maven modules. Now I would like to run SDC locally in order to define PNF of VFN within SDC locally. Lets assume I have Apache Tomcat/Jetty available. I can see that modules: a) sdc/catalog-be b) sdc/catalog-fe generate war modules that can be run on any Java web container, so I think they could be good starting points. So would it be a good idea to focus on mentioned artifacts? Also from Vagrant file I can see that elasticsearch & cassandra are also needed. Marcin ________________________________ From: Lando,Michael <[email protected]> Sent: Monday, March 5, 2018 8:59 AM To: Migdal, Marcin (Nokia - PL/Wroclaw) Cc: [email protected]; Morales, Victor Subject: RE: [onap-discuss] SDC- local development - how to? Hi, You can find instructions here: https://wiki.onap.org/pages/viewpage.action?pageId=15999821 you can find all the info on SDC here: https://wiki.onap.org/display/DW/Service+Design+and+Creation+%28SDC%29+Portal BR, Michael Lando Opensource TL , SDC AT&T Network Application Development · NetCom Tel Aviv | Tampa | Atlanta | New Jersey |Chicago ··········································································· Office: +972 (3) 5451487 Mobile: +972 (54) 7833603 e-mail: [email protected]<mailto:[email protected]> From: [email protected] [mailto:[email protected]] On Behalf Of Morales, Victor Sent: Friday, March 02, 2018 16:16 To: Migdal, Marcin (Nokia - PL/Wroclaw) <[email protected]>; [email protected] Subject: Re: [onap-discuss] SDC- local development - how to? Hey Marcin, We tried to collect most of the instructions (clone and compile, install dependencies, build docker images, etc.) into the vagrant-onap script [1]. This is its documentation [2], but it’s not covering the configuration and installation of the IDE, I suggest to install it manually and use the opt folder given that it’s sharing the source code between host and guest computers. Regards/Saludos Victor Morales [1] https://github.com/onap/integration/blob/master/bootstrap/vagrant-onap/lib/sdc<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_onap_integration_blob_master_bootstrap_vagrant-2Donap_lib_sdc&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=FYvXSElfSmWIXOeZxWIxQysejuz9-TXmaL6uftBh8MY&m=VAPoDqmxmOmnw1EkqbL2uctNhbGRdcJbyV9vf0nhXio&s=Cvh3_5oZToIdIor5o5At6iFiQSVfzGqg_eSLq1jEKpA&e=> [2] http://onap.readthedocs.io/en/amsterdam/submodules/integration.git/bootstrap/vagrant-onap/doc/source/index.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__onap.readthedocs.io_en_amsterdam_submodules_integration.git_bootstrap_vagrant-2Donap_doc_source_index.html&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=FYvXSElfSmWIXOeZxWIxQysejuz9-TXmaL6uftBh8MY&m=VAPoDqmxmOmnw1EkqbL2uctNhbGRdcJbyV9vf0nhXio&s=Ku_y0G9kSLVLI7HMnxd5yxifm4OBOv_oI3aW1LKdcd4&e=> From: <[email protected]<mailto:[email protected]>> on behalf of "Migdal, Marcin (Nokia - PL/Wroclaw)" <[email protected]<mailto:[email protected]>> Date: Thursday, March 1, 2018 at 12:37 AM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: [onap-discuss] SDC- local development - how to? Hello, Is there any instruction how to setup SDC for development in any IDE? Marcin
_______________________________________________ onap-discuss mailing list [email protected] https://lists.onap.org/mailman/listinfo/onap-discuss
