Skip to content

Commit

Permalink
base: add OPCUA IOC and module.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
guirodrigueslima authored and ericonr committed Apr 24, 2024
1 parent 7c9a18a commit db51309
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### New features

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

## v0.7.0
Expand Down
2 changes: 2 additions & 0 deletions base/.env
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ LIBSSCPIMEGA_VERSION=fb8acf533a7c01b5266bf32d60d1a5f923e19523

MOTOR_VERSION=R7-3-1
PMAC_VERSION=2-6-1

OPCUA_VERSION=0.9.4
7 changes: 7 additions & 0 deletions base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ RUN apt update -y && \
libtiff-dev \
libusb-1.0-0-dev \
libxml2-dev \
libssl-dev \
re2c \
wget \
ca-certificates
Expand Down Expand Up @@ -69,3 +70,9 @@ ARG PMAC_VERSION

COPY install_motor.sh .
RUN ./install_motor.sh

ARG DEBIAN_VERSION
ARG OPCUA_VERSION

COPY install_opcua.sh .
RUN ./install_opcua.sh
1 change: 1 addition & 0 deletions base/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ services:
LIBSSCPIMEGA_VERSION: ${LIBSSCPIMEGA_VERSION}
MOTOR_VERSION: ${MOTOR_VERSION}
PMAC_VERSION: ${PMAC_VERSION}
OPCUA_VERSION: ${OPCUA_VERSION}
17 changes: 17 additions & 0 deletions base/install_opcua.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

set -ex

. /opt/epics/install-functions.sh

opcua_release_url=https://github.com/epics-modules/opcua/releases/download/v${OPCUA_VERSION}
opcua_release_file=IOC_opcua-${OPCUA_VERSION}_Base-${EPICS_BASE_VERSION}_debian${DEBIAN_VERSION%.*}.tar.gz
lnls-get-n-unpack -l $opcua_release_url/$opcua_release_file

mv binaryOpcuaIoc opcua
install_module -i opcua OPCUA "
EPICS_BASE
"

EPICS_HOST_ARCH=`perl ${EPICS_BASE_PATH}/lib/perl/EpicsHostArch.pl`
ln -s ${EPICS_MODULES_PATH}/opcua/{opcuaIocApp/libopcua.so.0.9,lib/${EPICS_HOST_ARCH}/libopcua.so}

0 comments on commit db51309

Please sign in to comment.