Add docker-compose for NTS Manager. 75/5375/1
authorAlex Stancu <alexandru.stancu@highstreet-technologies.com>
Tue, 22 Dec 2020 13:59:20 +0000 (15:59 +0200)
committerAlex Stancu <alexandru.stancu@highstreet-technologies.com>
Tue, 22 Dec 2020 13:59:41 +0000 (15:59 +0200)
Issue-ID: SIM-52
Change-Id: Ie7771b662e1425bd11eff26556e111c56e5c170b
Signed-off-by: Alex Stancu <alexandru.stancu@highstreet-technologies.com>
ntsimulator/.env [new file with mode: 0644]
ntsimulator/docker-compose.yaml [new file with mode: 0644]

diff --git a/ntsimulator/.env b/ntsimulator/.env
new file mode 100644 (file)
index 0000000..26a6069
--- /dev/null
@@ -0,0 +1,6 @@
+DOCKER_REPO=o-ran-sc/
+
+# when changing BUILD_VERSION make sure you also change the version in framework.c
+BUILD_VERSION=1.0.3
+
+NTS_MANAGER_PORT=8300
diff --git a/ntsimulator/docker-compose.yaml b/ntsimulator/docker-compose.yaml
new file mode 100644 (file)
index 0000000..6cf95b5
--- /dev/null
@@ -0,0 +1,39 @@
+version: '2.4'
+services:
+  ntsim-ng:
+    image: "${DOCKER_REPO}nts-ng-manager:${BUILD_VERSION}"
+    container_name: nts-ng-manager
+    ports:
+     - "::${NTS_MANAGER_PORT}:830"
+    volumes:
+     - "/var/run/docker.sock:/var/run/docker.sock"
+     - "/usr/bin/docker:/usr/bin/docker"
+    environment:
+      IPv6_ENABLED: "false"
+      DOCKER_ENGINE_VERSION: "1.40"
+
+      NETCONF_NTS_HOST_IP: "10.20.11.121"
+      NETCONF_NTS_HOST_BASE_PORT: 50000
+      SSH_CONNECTIONS: 1
+      TLS_CONNECTIONS: 0
+
+      SDN_CONTROLLER_IP: "10.20.11.131"
+      SDN_CONTROLLER_PORT: 8181
+      SDN_CONTROLLER_CALLHOME_PORT: 6666
+      SDN_CONTROLLER_USERNAME: "admin"
+      SDN_CONTROLLER_PASSWORD: "admin"
+      
+      VES_ENDPOINT_PROTOCOL: "https"
+      VES_ENDPOINT_IP: "127.0.0.1"
+      VES_ENDPOINT_PORT: 1234
+      VES_ENDPOINT_AUTH_METHOD: "no-auth"
+      VES_ENDPOINT_USERNAME: "admin"
+      VES_ENDPOINT_PASSWORD: "admin"
+    networks:
+      app_net:
+  
+networks:
+  app_net:
+    driver: bridge
+    ipam:
+      driver: default