diff --git a/Dockerfile b/Dockerfile index 4ece951..0c09a60 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,9 +29,9 @@ ENV LD_LIBRARY_PATH=${EPICS_BASE}/lib/${EPICS_HOST_ARCH} ENV VIRTUALENV /venv ENV PATH=${VIRTUALENV}/bin:${EPICS_BASE}/bin/${EPICS_HOST_ARCH}:${PATH} ENV SUPPORT ${EPICS_ROOT}/support -ENV GLOBAL_RELEASE ${SUPPORT}/configure/RELEASE ENV IOC ${EPICS_ROOT}/ioc ENV RTEMS_TOP=/rtems + ENV EPICS_VERSION=R7.0.7 @@ -86,14 +86,9 @@ RUN bash /epics/scripts/patch-epics-base.sh RUN make -C ${EPICS_BASE} -j $(nproc) # also build the sequencer as it is used by many support modules -RUN wget https://github.com/ISISComputingGroup/EPICS-seq/archive/refs/tags/vendor_2_2_9.tar.gz && \ - tar -xzf vendor*.tar.gz -C ${SUPPORT} && \ - rm vendor*.tar.gz && \ - mv ${SUPPORT}/EPICS-seq* ${SUPPORT}/sncseq && \ - echo EPICS_BASE=${EPICS_BASE} > ${SUPPORT}/sncseq/configure/RELEASE +RUN bash /epics/scripts/get-sncseq.sh RUN make -C ${SUPPORT}/sncseq -j $(nproc) - # setup a global python venv and install ibek RUN python3 -m venv ${VIRTUALENV} && pip install ibek==1.3.0 diff --git a/epics/scripts/get-sncseq.sh b/epics/scripts/get-sncseq.sh new file mode 100644 index 0000000..16f8d4f --- /dev/null +++ b/epics/scripts/get-sncseq.sh @@ -0,0 +1,10 @@ +# we keep the sncseq source in our own epics-base repo because +# the original source has been removed for the moment +# (BESSY Hack: https://www.helmholtz.de/en/newsroom/bessy-ii-back-in-operation-after-cyber-attack-on-helmholtz-zentrum-berlin-hzb/) + +cd /tmp + +wget https://github.com/epics-containers/epics-base/raw/dev/vendor_2_2_9.tar.gz +tar -xzf vendor*.tar.gz -C ${SUPPORT} +rm vendor*.tar.gz +mv ${SUPPORT}/EPICS-seq* ${SUPPORT}/sncseq