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

Added motor and ipac modules #11

Merged
merged 1 commit into from
Sep 14, 2023
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
2 changes: 2 additions & 0 deletions base/.env
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ BUSY_VERSION=R1-7-4
AUTOSAVE_VERSION=R5-10-2
SSCAN_VERSION=R2-11-5
RECCASTER_VERSION=1.5
IPAC_VERSION=2.16
AREA_DETECTOR_VERSION=R3-12-1
MOTOR_VERSION=R7-3-1
5 changes: 5 additions & 0 deletions base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ ARG BUSY_VERSION
ARG AUTOSAVE_VERSION
ARG SSCAN_VERSION
ARG RECCASTER_VERSION
ARG IPAC_VERSION
ARG AREA_DETECTOR_VERSION
ARG MOTOR_VERSION

WORKDIR ${EPICS_MODULES_PATH}
COPY install_modules.sh .
Expand All @@ -43,3 +45,6 @@ RUN ./install_modules.sh
COPY nanohttp_stream.patch .
COPY install_area_detector.sh .
RUN ./install_area_detector.sh

COPY install_motor.sh .
RUN ./install_motor.sh
2 changes: 2 additions & 0 deletions base/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ services:
AUTOSAVE_VERSION: ${AUTOSAVE_VERSION}
SSCAN_VERSION: ${SSCAN_VERSION}
RECCASTER_VERSION: ${RECCASTER_VERSION}
IPAC_VERSION: ${IPAC_VERSION}
AREA_DETECTOR_VERSION: ${AREA_DETECTOR_VERSION}
MOTOR_VERSION: ${MOTOR_VERSION}
4 changes: 4 additions & 0 deletions base/install_modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,7 @@ download_github_module ChannelFinder recsync $RECCASTER_VERSION
install_module recsync/client RECCASTER "
EPICS_BASE = ${EPICS_BASE_PATH}
"

install_github_module epics-modules ipac IPAC $IPAC_VERSION "
EPICS_BASE = ${EPICS_BASE_PATH}
"
36 changes: 36 additions & 0 deletions base/install_motor.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/usr/bin/env bash

set -ex

git clone --depth 1 --branch ${MOTOR_VERSION} \
https://github.com/epics-modules/motor

cd motor/modules

git submodule update --init --depth 1 -j ${JOBS} \
motorMotorSim

module_releases="
MOTOR=${EPICS_MODULES_PATH}/motor
guirodrigueslima marked this conversation as resolved.
Show resolved Hide resolved
MOTOR_MOTORSIM=${EPICS_MODULES_PATH}/motor/modules/motorMotorSim
"
echo "$module_releases" >> ${EPICS_MODULES_PATH}/../RELEASE

cd ../configure

echo "
EPICS_BASE=${EPICS_BASE_PATH}
ASYN=${EPICS_MODULES_PATH}/asyn
SNCSEQ=${EPICS_MODULES_PATH}/seq
BUSY=${EPICS_MODULES_PATH}/busy
IPAC=${EPICS_MODULES_PATH}/ipac
" > RELEASE.local

echo "
BUILD_IOCS=NO
" > CONFIG_SITE.local

cd ..

make -j${JOBS}
make clean