-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (32 loc) · 1.4 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Dockerfile for 4diac FORTE with OPC UA support
FROM centos:7
MAINTAINER Ricardo Santana <rsantana@kenos.com.br>
# Needed packages to compile 4diac
RUN yum -y install epel-release && \
yum -y install python-setuptools git gcc-c++ cmake3 make && \
easy_install six && \
mkdir ~/4diac && cd $_ && \
git clone -b develop https://git.eclipse.org/r/4diac/org.eclipse.4diac.forte forte && \
git clone https://github.com/open62541/open62541.git --branch=v0.3.0 open62541 && \
mkdir ~/4diac/open62541/build && cd $_ && \
cmake3 -DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DUA_ENABLE_AMALGAMATION=ON .. && \
make -j && \
make install && \
mkdir ~/4diac/forte/build && cd $_ && \
cmake3 -DCMAKE_BUILD_TYPE=Release -DFORTE_ARCHITECTURE=Posix -DFORTE_MODULE_CONVERT=ON \
-DFORTE_COM_ETH=ON -DFORTE_MODULE_IEC61131=ON -DFORTE_COM_OPC_UA=ON \
-DFORTE_COM_OPC_UA_INCLUDE_DIR=$HOME/4diac/open62541/build \
-DFORTE_COM_OPC_UA_LIB_DIR=$HOME/4diac/open62541/build/bin \
-DFORTE_COM_OPC_UA_LIB=libopen62541.so .. && \
make -j && \
make install && \
echo '/usr/local/lib' > /etc/ld.so.conf.d/forte.conf && ldconfig && \
yum -y remove python-setuptools git gcc-c++ cmake3 make && \
yum clean all && \
rm -rf /var/cache/yum && \
rm -rf /root/4diac
EXPOSE 61499
EXPOSE 4840
CMD ["/usr/local/bin/forte"]