From e385a7a1d1934c6a3d22df3c3244678ca415134a Mon Sep 17 00:00:00 2001 From: Matej Perina Date: Wed, 3 Apr 2019 09:17:40 +0200 Subject: Proposal to remove OSGi dependencies from the CCSDK project Dependencies on the OSGi frameworks and libraries are removed by integrating the CCSDK project with the lighty.io. It's a toolkit that allows to use ODL services (in this case core services and the Restconf) without the dependency on the Karaf framework and the Blueprint DI. The ccsdk-lighty-module artifact contains lighty.io module that groups all other modules from other repositories and starts/stops them at once. The ccsdk-lighty-distribution artifact starts the lighty.io core, Restconf and the CCSDK integrated with the lighty.io and creates zip distribution with the CCSDK lighty.io application and necessary libraries. The distribution-lighty-ubuntu-docker artifact creates the docker image with the zip distribution from the ccsdk-lighty-application artifact and necessary configuration files. For more information see the README.md file in the lighty/docs directory. More info about the lighty.io - https://lighty.io Change-Id: Id29935c8e2951b400ad3217ff412bc5155384487 Signed-off-by: Matej Perina Signed-off-by: Samuel Kontris --- .../src/main/docker/docker-compose.yml | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 lighty/lighty-ubuntu-docker/src/main/docker/docker-compose.yml (limited to 'lighty/lighty-ubuntu-docker/src/main/docker/docker-compose.yml') diff --git a/lighty/lighty-ubuntu-docker/src/main/docker/docker-compose.yml b/lighty/lighty-ubuntu-docker/src/main/docker/docker-compose.yml new file mode 100644 index 00000000..14c3dc32 --- /dev/null +++ b/lighty/lighty-ubuntu-docker/src/main/docker/docker-compose.yml @@ -0,0 +1,64 @@ +version: '2' + +services: + db: + image: mysql/mysql-server:5.6 + container_name: ccsdk_db_container + ports: + - "3306" + environment: + - MYSQL_ROOT_PASSWORD=openECOMP1.0 + - MYSQL_ROOT_HOST=% + logging: + driver: "json-file" + options: + max-size: "30m" + max-file: "5" + + + odlsli: + image: onap/ccsdk-lighty-ubuntu-image + depends_on : + - db + container_name: ccsdk_lighty_container + entrypoint: ["/opt/onap/ccsdk/bin/startODL.sh"] + ports: + - "8383:8181" + links: + - db:dbhost + - db:sdnctldb01 + - db:sdnctldb02 + environment: + - MYSQL_ROOT_PASSWORD=openECOMP1.0 + - SDNC_CONFIG_DIR=/opt/onap/ccsdk/data/properties + logging: + driver: "json-file" + options: + max-size: "30m" + max-file: "5" + + dgbuilder: + image: nexus3.onap.org:10001/onap/ccsdk-dgbuilder-image + depends_on: + - db + container_name: ccsdk_dgbuilder_container + entrypoint: + - "/bin/bash" + - "-c" + - "cd /opt/onap/ccsdk/dgbuilder/ && ./start.sh sdnc1.0 && wait" + ports: + - "3000:3100" + links: + - db:dbhost + - db:sdnctldb01 + - db:sdnctldb02 + - odlsli:sdnhost + environment: + - MYSQL_ROOT_PASSWORD=openECOMP1.0 + - SDNC_CONFIG_DIR=/opt/onap/ccsdk/data/properties + logging: + driver: "json-file" + options: + max-size: "30m" + max-file: "5" + -- cgit 1.2.3-korg