Skip to content

Commit d897611

Browse files
guirodrigueslimaericonr
authored andcommitted
base: add OPCUA IOC and module.
A new install script was added for it because it isn't supported for all our current platforms, due to being prebuilt, and includes extra build steps for that same reason. Its install location follows the same reasoning as ether_ip.
1 parent 43f1ece commit d897611

File tree

5 files changed

+28
-1
lines changed

5 files changed

+28
-1
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### New features
66

7-
* base: add `ether_ip` IOC and module. by @guirodrigueslima in
7+
* base: add OPCUA and `ether_ip` IOCs and modules. by @guirodrigueslima in
88
https://github.com/cnpem/epics-in-docker/pull/57
99

1010
## v0.7.0

base/.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ LIBSSCPIMEGA_VERSION=fb8acf533a7c01b5266bf32d60d1a5f923e19523
2323

2424
MOTOR_VERSION=R7-3-1
2525
PMAC_VERSION=2-6-1
26+
27+
OPCUA_VERSION=0.9.4

base/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ RUN apt update -y && \
1717
libtiff-dev \
1818
libusb-1.0-0-dev \
1919
libxml2-dev \
20+
libssl-dev \
2021
re2c \
2122
wget \
2223
ca-certificates
@@ -69,3 +70,9 @@ ARG PMAC_VERSION
6970

7071
COPY install_motor.sh .
7172
RUN ./install_motor.sh
73+
74+
ARG DEBIAN_VERSION
75+
ARG OPCUA_VERSION
76+
77+
COPY install_opcua.sh .
78+
RUN ./install_opcua.sh

base/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ services:
3030
LIBSSCPIMEGA_VERSION: ${LIBSSCPIMEGA_VERSION}
3131
MOTOR_VERSION: ${MOTOR_VERSION}
3232
PMAC_VERSION: ${PMAC_VERSION}
33+
OPCUA_VERSION: ${OPCUA_VERSION}

base/install_opcua.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
3+
set -ex
4+
5+
. /opt/epics/install-functions.sh
6+
7+
opcua_release_url=https://github.com/epics-modules/opcua/releases/download/v${OPCUA_VERSION}
8+
opcua_release_file=IOC_opcua-${OPCUA_VERSION}_Base-${EPICS_BASE_VERSION}_debian${DEBIAN_VERSION%.*}.tar.gz
9+
lnls-get-n-unpack -l $opcua_release_url/$opcua_release_file
10+
11+
mv binaryOpcuaIoc opcua
12+
install_module -i opcua OPCUA "
13+
EPICS_BASE
14+
"
15+
16+
EPICS_HOST_ARCH=`perl ${EPICS_BASE_PATH}/lib/perl/EpicsHostArch.pl`
17+
ln -s ${EPICS_MODULES_PATH}/opcua/{opcuaIocApp/libopcua.so.0.9,lib/${EPICS_HOST_ARCH}/libopcua.so}

0 commit comments

Comments
 (0)