From d3cdace51db473c93540229da3a0fd061120957c Mon Sep 17 00:00:00 2001 From: SantoshB Date: Thu, 15 Oct 2020 14:57:57 +0530 Subject: cds-bash script package Issue-ID: CCSDK-2913 Change-Id: I2f97b0c78314019d5002e8563c4e433ae5e816b9 Signed-off-by: SantoshB Signed-off-by: mrichomme --- .../dependencies/odl-test-tool/Dockerfile | 8 ++++++++ .../odl-test-tool/testtool-deployment.yaml | 22 ++++++++++++++++++++++ .../odl-test-tool/testtool-service.yaml | 10 ++++++++++ 3 files changed, 40 insertions(+) create mode 100644 cds-regression-test/dependencies/odl-test-tool/Dockerfile create mode 100644 cds-regression-test/dependencies/odl-test-tool/testtool-deployment.yaml create mode 100644 cds-regression-test/dependencies/odl-test-tool/testtool-service.yaml (limited to 'cds-regression-test/dependencies/odl-test-tool') diff --git a/cds-regression-test/dependencies/odl-test-tool/Dockerfile b/cds-regression-test/dependencies/odl-test-tool/Dockerfile new file mode 100644 index 0000000..18b21ea --- /dev/null +++ b/cds-regression-test/dependencies/odl-test-tool/Dockerfile @@ -0,0 +1,8 @@ +FROM openjdk:14-alpine + +# checkout and build https://git.opendaylight.org/gerrit/admin/repos/netconf +# wiki https://wiki.opendaylight.org/view/OpenDaylight_Controller:Netconf:Testtool +COPY netconf-testtool-1.8.0-executable.jar /opt/app/netconf-testtool/netconf-testtool-1.8.0-executable.jar +EXPOSE 17830 +ENTRYPOINT ["java", "-Xmx1G", "-XX:MaxPermSize=256M", "-jar", "/opt/app/netconf-testtool/netconf-testtool-1.8.0-executable.jar"] + diff --git a/cds-regression-test/dependencies/odl-test-tool/testtool-deployment.yaml b/cds-regression-test/dependencies/odl-test-tool/testtool-deployment.yaml new file mode 100644 index 0000000..e2c36a6 --- /dev/null +++ b/cds-regression-test/dependencies/odl-test-tool/testtool-deployment.yaml @@ -0,0 +1,22 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: odl-netconf-testtool + labels: + app: odl-netconf-testtool +spec: + replicas: 1 + selector: + matchLabels: + app: netconf-testtool + template: + metadata: + labels: + app: netconf-testtool + spec: + containers: + - name: netconf-testtool + image: registry-public.nso.lab-services.ca/odl/netconf-test-tool:1.8.0 + imagePullPolicy: Always + ports: + - containerPort: 17830 diff --git a/cds-regression-test/dependencies/odl-test-tool/testtool-service.yaml b/cds-regression-test/dependencies/odl-test-tool/testtool-service.yaml new file mode 100644 index 0000000..141f514 --- /dev/null +++ b/cds-regression-test/dependencies/odl-test-tool/testtool-service.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Service +metadata: + name: odl-netconf-testtool +spec: + selector: + app: netconf-testtool + ports: + - protocol: TCP + port: 17830 -- cgit 1.2.3-korg