Opc-au client and server added
[eliot.git] / blueprints / iotgateway / playbooks / roles / el_opc-au / files / deploy / opc-au_client / Dockerfile
diff --git a/blueprints/iotgateway/playbooks/roles/el_opc-au/files/deploy/opc-au_client/Dockerfile b/blueprints/iotgateway/playbooks/roles/el_opc-au/files/deploy/opc-au_client/Dockerfile
new file mode 100644 (file)
index 0000000..33704b5
--- /dev/null
@@ -0,0 +1,15 @@
+FROM centos:centos7
+ADD ./work/ /root/work
+RUN yum install -y gcc git
+RUN yum  groupinstall -y 'Development Tools'
+RUN cd /root/work && ls -al && tar xzf cmake-3.15.2.tar.gz && \
+    rpm -Uvh scons-2.3.0-1.el7.centos.noarch.rpm && \
+    python get-pip.py && \
+    cd cmake-3.15.2 && ./bootstrap && \
+    make && \
+    make install && \
+    cd ../protocol-opcua-c/ && \
+    ./build.sh
+
+# Execute script
+ENTRYPOINT ["sh", "./client"]