Skip to content

Commit

Permalink
remove sncseq
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Mar 5, 2024
1 parent d1b32d7 commit 34efe03
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 46 deletions.
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,6 @@ RUN git clone ${EPICS_BASE_SRC} -q ${GIT_OPTS} ${EPICS_BASE} && \
bash /epics/scripts/patch-epics-base.sh
RUN make -C ${EPICS_BASE} -j $(nproc); make -C ${EPICS_BASE} clean

# also build the sequencer as it is used by many support modules
RUN bash /epics/scripts/get-sncseq.sh
RUN make -C ${SUPPORT}/sncseq -j $(nproc); make -C ${SUPPORT}/sncseq clean

# setup a global python venv and install ibek
COPY requirements.txt /requirements.txt
RUN python3 -m venv ${VIRTUALENV} && pip install -r /requirements.txt

Expand All @@ -111,8 +106,7 @@ RUN python3 -m venv ${VIRTUALENV} && pip install -r /requirements.txt
FROM developer AS runtime_prep

# get the products from the build stage and reduce to runtime assets only
RUN ibek ioc extract-runtime-assets /assets --no-defaults --extras /venv && \
bash /epics/scripts/runtime-prep-epics-base.sh
RUN ibek ioc extract-runtime-assets /assets --no-defaults /venv

##### runtime stage ############################################################

Expand Down
21 changes: 9 additions & 12 deletions build
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

# a script to locally build all targets using podman or docker
################################################################################
# generic local build script for epics-containers repositories #
################################################################################

# set TARGET_ARCHITECTURE to rtems for RTEMS based targets
T_A=${TARGET_ARCHITECTURE:-linux}
Expand All @@ -9,24 +11,19 @@ TARGET=${TARGET:-developer}
# set TAG to override the default tag
TAG=${TAG:-ec_test}

# log commands and stop on erros
# log commands and stop on errors
set -xe

cd $(dirname ${0})

# use docker if available else use podman
if ! docker version &>/dev/null; then docker=podman; else docker=docker; fi

if ! $docker buildx version &>/dev/null; then
echo "buildx required. (install with 'apt install docker-buildx')"
exit 1
fi
if $docker buildx version &>/dev/null; then builx=buildx; load=--load; fi

# make sure new repos get their submodule ibek-support
git submodule update --init
if [ ! -d ibek-support ] ; then git submodule update --init ; fi

# build and developer images
$docker buildx build --load --network host --target $TARGET \
--build-arg TARGETARCH=amd64 \
--build-arg TARGET_ARCHITECTURE=$T_A \
-t ${TAG} .
$docker build $buildx -t ${TAG} --build-arg \
TARGET_ARCHITECTURE=$T_A $load --target $TARGET .

11 changes: 0 additions & 11 deletions epics/scripts/get-sncseq.sh

This file was deleted.

11 changes: 5 additions & 6 deletions epics/scripts/patch-epics-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

THIS_DIR=$(dirname $(readlink -f $0))

# don't compile tests - saving container space
sed -i /epics/epics-base/modules/*/Makefile -e '/\+\= test/d'
rm -r /epics/epics-base/modules/*/test*
# comment out the test directories from the Makefile
sed -i -E 's/(^[^#].*+= test.*$)/# \1/' \
/epics/epics-base/Makefile \
/epics/epics-base/modules/*/Makefile

if [[ $TARGET_ARCHITECTURE == "rtems" ]]; then
echo "Configuring epics-base to build RTEMS beatnik only"

echo "VALID_BUILDS=Host" >> ${EPICS_BASE}/configure/CONFIG_SITE.Common.linux-x86_64
echo "Configuring epics-base to build RTEMS beatnik"

cp ${THIS_DIR}/rtems/CONFIG_SITE.local ${EPICS_BASE}/configure/CONFIG_SITE.local
fi
9 changes: 0 additions & 9 deletions epics/scripts/runtime-prep-epics-base.sh

This file was deleted.

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ibek==1.5.2
ibek==1.7.0
Binary file removed vendor_2_2_9.tar.gz
Binary file not shown.

0 comments on commit 34efe03

Please sign in to comment.