Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pmac module version update, add motorPIGCS2 and MCA IOC #64

Merged
merged 5 commits into from
Aug 19, 2024
Merged
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
5 changes: 4 additions & 1 deletion .github/workflows/included-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,8 @@ jobs:
uses: docker/bake-action@v4
with:
workdir: images/
files: docker-compose-opcua.yml
files: |
docker-compose-opcua.yml
docker-compose-motorpigcs2.yml
docker-compose-mca.yml
push: true
11 changes: 11 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
* base: remove CALC dependency on Sequencer. by @henriquesimoes in
https://github.com/cnpem/epics-in-docker/pull/68.

### Bug fixes

* base: update PMAC version. by @guirodrigueslima in
https://github.com/cnpem/epics-in-docker/pull/64

### New features

* base: add IOCStats module. by @gustavosr8 in
Expand All @@ -21,6 +26,12 @@
`BUILD_TAR_PACKAGES`.
* base: add SNMP module. by @guirodrigueslima in
https://github.com/cnpem/epics-in-docker/pull/67
* base: add motorPIGCS2 IOC and module, and image. by @guirodrigueslima in
https://github.com/cnpem/epics-in-docker/pull/64
* base: add Scaler module. by @guirodrigueslima in
https://github.com/cnpem/epics-in-docker/pull/64
* base: add MCA IOC and image. by @guirodrigueslima in
https://github.com/cnpem/epics-in-docker/pull/64

## v0.8.1

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Some IOC images are provided by this repository directly, and can be used
without any build step.

- OPCUA IOC: `ghcr.io/cnpem/opcua-epics-ioc`
- MCA IOC: `ghcr.io/cnpem/mca-epics-ioc`
- Motor PIGCS2 IOC: `ghcr.io/cnpem/motor-pigcs2-epics-ioc`

## IOC images

Expand Down
5 changes: 4 additions & 1 deletion base/.env
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@ IOCSTATS_VERSION=3.2.0
IPMICOMM_VERSION=R4.6.0
PYDEVSUP_VERSION=1.2
SNMP_VERSION=1.1.0.4
SCALER_VERSION=4.1
guirodrigueslima marked this conversation as resolved.
Show resolved Hide resolved
MCA_VERSION=R7-10

AREA_DETECTOR_VERSION=R3-12-1
NDSSCPIMEGA_VERSION=1.0.0
LIBSSCPIMEGA_VERSION=fb8acf533a7c01b5266bf32d60d1a5f923e19523

MOTOR_VERSION=R7-3-1
PMAC_VERSION=2-6-1
PIGCS2_VERSION=60af8bdb17c1717e4545d8170f820e358ce31458
guirodrigueslima marked this conversation as resolved.
Show resolved Hide resolved
PMAC_VERSION=2-6-4b3

OPCUA_VERSION=0.9.4
5 changes: 5 additions & 0 deletions base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ RUN apt update -y && \
git \
libaravis-dev \
libevent-dev \
libnet-dev \
libpcap-dev \
gustavosr8 marked this conversation as resolved.
Show resolved Hide resolved
libreadline-dev \
libssh2-1-dev \
libtiff-dev \
Expand Down Expand Up @@ -60,6 +62,8 @@ ARG IOCSTATS_VERSION
ARG IPMICOMM_VERSION
ARG PYDEVSUP_VERSION
ARG SNMP_VERSION
ARG SCALER_VERSION
ARG MCA_VERSION

COPY ipmicomm.patch .
COPY caputlog-waveform-fix.patch .
Expand All @@ -75,6 +79,7 @@ COPY install_area_detector.sh .
RUN ./install_area_detector.sh

ARG MOTOR_VERSION
ARG PIGCS2_VERSION
ARG PMAC_VERSION

COPY install_motor.sh .
Expand Down
3 changes: 3 additions & 0 deletions base/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ services:
IPMICOMM_VERSION: ${IPMICOMM_VERSION}
PYDEVSUP_VERSION: ${PYDEVSUP_VERSION}
SNMP_VERSION: ${SNMP_VERSION}
SCALER_VERSION: ${SCALER_VERSION}
MCA_VERSION: ${MCA_VERSION}
AREA_DETECTOR_VERSION: ${AREA_DETECTOR_VERSION}
NDSSCPIMEGA_VERSION: ${NDSSCPIMEGA_VERSION}
LIBSSCPIMEGA_VERSION: ${LIBSSCPIMEGA_VERSION}
MOTOR_VERSION: ${MOTOR_VERSION}
PIGCS2_VERSION: ${PIGCS2_VERSION}
guirodrigueslima marked this conversation as resolved.
Show resolved Hide resolved
PMAC_VERSION: ${PMAC_VERSION}
OPCUA_VERSION: ${OPCUA_VERSION}
5 changes: 3 additions & 2 deletions base/install-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ install_module() {
release_modules="$3"

cd $module_name

echo ${dependency_name}=${PWD} >> ${EPICS_RELEASE_FILE}

get_module_path "$release_modules" > configure/RELEASE

if [ -n "$NEEDS_TIRPC" ]; then
Expand All @@ -40,8 +43,6 @@ install_module() {
make -C iocBoot
fi

echo ${dependency_name}=${PWD} >> ${EPICS_RELEASE_FILE}

cd -
}

Expand Down
17 changes: 17 additions & 0 deletions base/install_modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,20 @@ cd ..
install_module -i snmp SNMP "
EPICS_BASE
"

install_from_github epics-modules scaler SCALER $SCALER_VERSION "
EPICS_BASE
ASYN
"

install_from_github -i epics-modules mca MCA $MCA_VERSION "
EPICS_BASE
CALC
SSCAN
BUSY
SCALER
SNCSEQ
AUTOSAVE
ASYN
MCA
"
13 changes: 13 additions & 0 deletions base/install_motor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@ cd motor/modules
git submodule update --init --depth 1 -j ${JOBS} \
motorMotorSim

git submodule update --init -j ${JOBS} \
motorPIGCS2

git -C motorPIGCS2 checkout ${PIGCS2_VERSION}

module_releases="
MOTOR=${EPICS_MODULES_PATH}/motor
MOTOR_MOTORSIM=${EPICS_MODULES_PATH}/motor/modules/motorMotorSim
MOTOR_PIGCS2=${EPICS_MODULES_PATH}/motor/modules/motorPIGCS2
"
echo "$module_releases" >> ${EPICS_RELEASE_FILE}

Expand All @@ -37,6 +43,13 @@ cd ..
make -j${JOBS}
make clean

install_module -i modules/motorPIGCS2/iocs/pigcs2IOC PIGCS2 "
EPICS_BASE
ASYN
MOTOR
SNCSEQ
"

cd $EPICS_MODULES_PATH

download_from_github dls-controls pmac $PMAC_VERSION
Expand Down
5 changes: 5 additions & 0 deletions base/musl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ RUN apk add --no-cache \
g++ \
libevent-dev \
libevent-static \
libnet-dev \
libpcap-dev \
libtirpc-dev \
libtirpc-static \
libusb-dev \
linux-headers \
make \
musl-dev \
Expand Down Expand Up @@ -59,6 +62,8 @@ ARG IOCSTATS_VERSION
ARG IPMICOMM_VERSION
ARG PYDEVSUP_VERSION
ARG SNMP_VERSION
ARG SCALER_VERSION
ARG MCA_VERSION

WORKDIR ${EPICS_MODULES_PATH}
COPY ipmicomm.patch .
Expand Down
2 changes: 2 additions & 0 deletions base/musl/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ services:
IPMICOMM_VERSION: ${IPMICOMM_VERSION}
PYDEVSUP_VERSION: ${PYDEVSUP_VERSION}
SNMP_VERSION: ${SNMP_VERSION}
SCALER_VERSION: ${SCALER_VERSION}
MCA_VERSION: ${MCA_VERSION}
13 changes: 13 additions & 0 deletions images/docker-compose-mca.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
services:
ioc:
image: ghcr.io/cnpem/mca-epics-ioc:$TAG
build:
context: ./
dockerfile: ../Dockerfile
target: no-build
guirodrigueslima marked this conversation as resolved.
Show resolved Hide resolved
labels:
org.opencontainers.image.source: https://github.com/cnpem/epics-in-docker
args:
REPONAME: mca
RUNDIR: /opt/epics/modules/mca/iocBoot/iocAmptek
RUNTIME_PACKAGES: libpcap0.8 libnet1 libusb-1.0-0
12 changes: 12 additions & 0 deletions images/docker-compose-motorpigcs2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
services:
ioc:
image: ghcr.io/cnpem/motor-pigcs2-epics-ioc:$TAG
build:
context: ./
dockerfile: ../Dockerfile
target: no-build
guirodrigueslima marked this conversation as resolved.
Show resolved Hide resolved
labels:
org.opencontainers.image.source: https://github.com/cnpem/epics-in-docker
args:
REPONAME: motorpigcs2
RUNDIR: /opt/epics/modules/motor/modules/motorPIGCS2/iocs/pigcs2IOC/iocBoot/iocPIGCS2