Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/base-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ jobs:
docker-compose-mca.yml
docker-compose-ca-gateway.yml
docker-compose-pvagw.yml
docker-compose-twincat-ads.yml
push: ${{ github.event_name == 'push' && vars.PUSH_TO_REGISTRY == 'true' && github.ref_type == 'tag' }}
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

* base: add lakeshore340 module. by @guirodrigueslima in
https://github.com/cnpem/epics-in-docker/pull/123
* base: add twincat-ads module. by @MaikTheWay in
https://github.com/cnpem/epics-in-docker/pull/127
* images: add twincat-ads image. by @MaikTheWay in
https://github.com/cnpem/epics-in-docker/pull/127

## v0.14.1

Expand Down
3 changes: 3 additions & 0 deletions base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ ARG DEBIAN_VERSION
COPY opcua_versions.sh install_opcua.sh $EPICS_IN_DOCKER
RUN $EPICS_IN_DOCKER/install_opcua.sh

COPY twincat_ads_versions.sh install_twincat_ads.sh $EPICS_IN_DOCKER
RUN $EPICS_IN_DOCKER/install_twincat_ads.sh

COPY lnls-build-ioc.sh /usr/local/bin/lnls-build-ioc
COPY lnls-prune-artifacts.sh /usr/local/bin/lnls-prune-artifacts
COPY lnls-run.sh /usr/local/bin/lnls-run
31 changes: 31 additions & 0 deletions base/install_twincat_ads.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env bash

set -ex

. $EPICS_IN_DOCKER/install-functions.sh
. $EPICS_IN_DOCKER/epics_versions.sh
. $EPICS_IN_DOCKER/twincat_ads_versions.sh

git clone --recursive --depth 1 --branch ${TWINCAT_ADS_VERSION} \
https://github.com/epics-modules/twincat-ads

mv twincat-ads ads-modules

install_module ads-modules ADS "
EPICS_BASE
ASYN
"

mkdir ads-ioc && cd ads-ioc
yes ads | ${EPICS_BASE_PATH}/bin/linux-x86_64/makeBaseApp.pl -i -t ioc
cd ..

cp -r ads-modules/adsExApp ads-ioc/adsExApp
cp ads-modules/startup/* ads-ioc/iocBoot/iocads/
rm ads-ioc/iocBoot/iocads/st.cmd

install_module -i ads-ioc ADS_IOC "
EPICS_BASE
ASYN
ADS
"
1 change: 1 addition & 0 deletions base/twincat_ads_versions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TWINCAT_ADS_VERSION=v2.1.2
12 changes: 12 additions & 0 deletions images/docker-compose-twincat-ads.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
services:
twincat_ads:
image: ghcr.io/cnpem/twincat-ads-epics-ioc:$TAG
build:
context: ./
dockerfile: ../Dockerfile
target: no-build
labels:
org.opencontainers.image.source: https://github.com/cnpem/epics-in-docker
args:
APP_DIRS: /opt/epics/modules/ads-ioc
RUNDIR: /opt/epics/modules/ads-ioc/iocBoot/iocads