diff --git a/.github/workflows/build.sh b/.github/workflows/build.sh index 090e4d8..412a0e9 100755 --- a/.github/workflows/build.sh +++ b/.github/workflows/build.sh @@ -19,10 +19,10 @@ if [[ "${PUSH}" == 'true' ]] ; then EC_PUSH='--push' ; fi THIS=$(dirname ${0}) set -xe -mkdir -p ${CACHE} +mkdir -p ${EC_CACHE} # get the current version of ec CLI -pip install -r ${THIS}/../../requirements.txt +pip install -r ${THIS}/../../requirements_ec.txt # add cache arguments - local file cache passed by github seems to be most reliable export EC_CARGS=" @@ -37,8 +37,7 @@ export EC_CARGS=" ec -v dev build ${EC_TAG} ${EC_PLATFORM} ${EC_PUSH} ${EC_CARGS} # extract the ioc schema from the runtime image -ec dev launch-local ${EC_TAG} --execute \ -'ibek ioc generate-schema /epics/ibek/*.ibek.support.yaml' > ibek.ioc.schema.json +ec dev launch-local ${EC_TAG} --execute 'ibek ioc generate-schema' > ibek.ioc.schema.json # run acceptance tests shopt -s nullglob # expand to nothing if no tests are found diff --git a/Dockerfile b/Dockerfile index 80c289f..24f8e61 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,14 @@ ##### build stage ############################################################## ARG TARGET_ARCHITECTURE -ARG BASE=7.0.7ec2 +ARG BASE=7.0.7ec3 ARG REGISTRY=ghcr.io/epics-containers FROM ${REGISTRY}/epics-base-${TARGET_ARCHITECTURE}-developer:${BASE} AS developer -# get latest ibek while under dev. In future the epics-base version will be used -RUN pip install --upgrade ibek==1.4.2 - -# the devcontainer mounts the project root to /epics/ioc-template -WORKDIR /epics/ioc-template/ibek-support +# The devcontainer mounts the project root to /epics/ioc-adsimdetector. Using +# the same location here makes devcontainer/runtime differences transparent. +WORKDIR /epics/ioc-motorsim/ibek-support # copy the global ibek files COPY ibek-support/_global/ _global @@ -22,7 +20,7 @@ COPY ibek-support/asyn/ asyn/ RUN asyn/install.sh R4-42 COPY ibek-support/autosave/ autosave/ -RUN autosave/install.sh R5-10-2 +RUN autosave/install.sh R5-11 COPY ibek-support/busy/ busy/ RUN busy/install.sh R1-7-3 @@ -34,12 +32,12 @@ COPY ibek-support/calc/ calc/ RUN calc/install.sh R3-7-5 COPY ibek-support/motor/ motor/ -RUN motor/install.sh R7-2-3b1 +RUN motor/install.sh R7-3-1 -COPY ibek-support/pmac/ pmac/ -RUN pmac/install.sh 2-4-10 +COPY ibek-support/motorMotorSim/ motorMotorSim/ +RUN motorMotorSim/install.sh R1-2 -# Generate template IOC source tree / generate Makefile / compile +# create IOC source tree, generate Makefile and compile IOC Instance RUN ibek ioc build ##### runtime preparation stage ################################################ diff --git a/build b/build index b96d509..ca9d319 100755 --- a/build +++ b/build @@ -1,7 +1,7 @@ #!/bin/bash ################################################################################ -# generic local build script for epics-containers ioc repositories # +# generic local build script for epics-containers ioc repositories # ################################################################################ # pass rtems as first argument to build RTEMS on cross-compiler @@ -18,7 +18,4 @@ git submodule update --init ec dev build --arch ${TARGET_ARCHITECTURE} # get the schema file from the developer container and save it locally -ec dev launch-local --execute \ -'ibek ioc generate-schema /epics/ibek/*.ibek.support.yaml' \ -> ibek.ioc.schema.json - +ec dev launch-local --execute 'ibek ioc generate-schema' > ibek.ioc.schema.json diff --git a/ibek-support b/ibek-support index c39e3bd..13d9edc 160000 --- a/ibek-support +++ b/ibek-support @@ -1 +1 @@ -Subproject commit c39e3bd3ddb9f13910f50e86480ffc5ce7ef127c +Subproject commit 13d9edc73565be5d3247aa58b844741d7eda6989 diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 6343875..0000000 --- a/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -epics-containers-cli==2.6.3 -#git+https://github.com/epics-containers/epics-containers-cli.git@dev diff --git a/requirements_ec.txt b/requirements_ec.txt new file mode 100644 index 0000000..ac3632c --- /dev/null +++ b/requirements_ec.txt @@ -0,0 +1,3 @@ +epics-containers-cli==2.6.4 +# to install direct from github during development in the dev branch: +#git+https://github.com/epics-containers/epics-containers-cli.git@dev