Skip to content

Commit

Permalink
return to using a script for install_proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Mar 20, 2024
1 parent 401fad9 commit ae533f3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ COPY ioc ${SOURCE_FOLDER}/ioc
RUN cd ${IOC} && ./install.sh && make

# install runtime proxy for non-native builds
RUN if [ EPICS_TARGET_ARCH != "linux_x86-64" ] ; then \
pip install rtems-proxy==0.2.2; fi
RUN bash ${IOC}/install_proxy.sh

##### runtime preparation stage ################################################
FROM developer AS runtime_prep
Expand Down
23 changes: 23 additions & 0 deletions ioc/install_proxy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

# This script installs a python proxy for the IOC. The proxy is used to
# communicate with the IOC from the kubernetes pod where the IOC is non-native
# and cannot run in the cluster itself.

# Only one proxy will be installed based on the EPICS_TARGET_ARCH
# the entry point for all proxies will be "epics-proxy start" and will
# be called by the default IOC start.sh script after it has prepared
# runtime assets.
# TODO: at present the rtems-proxy is the only supported proxy and uses
# rtems-proxy start as its entry point.
# TODO: consider renaming to ioc-proxy and genericizing. This would
# negate the need for this script.

# Most IOCs are native linux-x86_64 and will run directly in the cluster
# so proxy installation is not required.

if [[ $EPICS_TARGET_ARCH == "RTEMS-beatnik" ]] ; then
pip install rtems-proxy=="0.2.2"
fi

# no other proxies supported at present

0 comments on commit ae533f3

Please sign in to comment.