4 # set the docker name and docker tag when you build
5 # export DOCKER_NAME=eliot/opc-ua
6 # export DOCKER_TAG=latest
8 export ELIOT_DIR=$(cd $(dirname $0); pwd)
9 export WORK_DIR=$ELIOT_DIR/work
10 export CMAKE_URL=https://github.com/Kitware/CMake/releases/download/v3.15.2/cmake-3.15.2.tar.gz
11 export SCONS_PPA_URL=http://repo.okay.com.mx/centos/7/x86_64/release//scons-2.3.0-1.el7.centos.noarch.rpm
12 export GET_PIP_URL=https://bootstrap.pypa.io/get-pip.py
13 export OPCUA_REPO=https://github.com/edgexfoundry-holding/protocol-opcua-c.git
14 export DOCKER_NAME=${DOCKER_NAME:-"eliot/opc-ua"}
15 export DOCKER_TAG=${DOCKER_TAG:-"latest"}
17 # Clean and Create the work directory
21 yum install -y gcc git wget
22 yum groupinstall -y 'Development Tools'
23 # Get the package and source code
31 rpm -Uvh scons-2.3.0-1.el7.centos.noarch.rpm
34 # Build and Install camke
35 tar xzf cmake-3.15.2.tar.gz
36 cd ${WORK_DIR}/cmake-3.15.2
41 # Build the opc-ua server and client
42 cd ${WORK_DIR}/protocol-opcua-c/
46 echo "####################################################"
47 echo "# If you want to start the server, follow below steps"
48 echo "# cd ${WORK_DIR}/protocol-opcua-c/example/out"
50 echo "####################################################"