0.7.1 Version of submgr

Introducing Routing Manager integration from 0.6.0
Transaction handling for Subscription Requests
DeleteRequest Handling

Change-Id: I029ee51c16e00feb90f61277135b06e784657002
Signed-off-by: kalnagy <kalman.nagy@nokia.com>
diff --git a/Dockerfile b/Dockerfile
index 76e8c5c..d1f9737 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -25,9 +25,9 @@
 COPY . /opt/submgr
 
 # Install RMr shared library
-RUN wget --content-disposition https://packagecloud.io/o-ran-sc/master/packages/debian/stretch/rmr_1.0.36_amd64.deb/download.deb && dpkg -i rmr_1.0.36_amd64.deb
+RUN wget --content-disposition https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch/rmr_1.6.0_amd64.deb/download.deb && dpkg -i rmr_1.6.0_amd64.deb
 # Install RMr development header files
-RUN wget --content-disposition https://packagecloud.io/o-ran-sc/master/packages/debian/stretch/rmr-dev_1.0.36_amd64.deb/download.deb && dpkg -i rmr-dev_1.0.36_amd64.deb
+RUN wget --content-disposition https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch/rmr-dev_1.6.0_amd64.deb/download.deb && dpkg -i rmr-dev_1.6.0_amd64.deb
 
 # "PULLING LOG and COMPILING LOG"
 RUN git clone "https://gerrit.o-ran-sc.org/r/com/log" /opt/log && cd /opt/log && \
@@ -41,6 +41,22 @@
  cp wrapper.h headers/*.h /usr/local/include/ && \
  ldconfig
 
+# "Installing Swagger"
+RUN cd /usr/local/go/bin \
+    && wget --quiet https://github.com/go-swagger/go-swagger/releases/download/v0.19.0/swagger_linux_amd64 \
+    && mv swagger_linux_amd64 swagger \
+    && chmod +x swagger
+
+# "Getting and generating routing managers api client"
+RUN cd /opt/submgr \
+    && git clone "https://gerrit.o-ran-sc.org/r/ric-plt/rtmgr" \
+    && cp rtmgr/api/routing_manager.yaml api/ \
+    && rm -rf rtmgr
+
+RUN cd /opt/submgr \
+    && mkdir -p /root/go \
+    && /usr/local/go/bin/swagger generate client -f api/routing_manager.yaml -t pkg/ -m rtmgr_models -c rtmgr_client
+
 # "COMPILING Subscription manager"
 RUN mkdir -p /opt/bin && cd /opt/submgr && \
  /usr/local/go/bin/go get && \
@@ -55,4 +71,4 @@
 COPY --from=submgrbuild /usr/local/lib /usr/local/lib
 RUN ldconfig
 
-CMD /run_submgr.sh
\ No newline at end of file
+RUN chmod 755 /run_submgr.sh