Skip to content

Commit

Permalink
allow write to ibek-support yaml files
Browse files Browse the repository at this point in the history
gilesknap committed Jul 3, 2024
1 parent a3d558d commit 57bd5b2
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -73,7 +73,8 @@ COPY --from=runtime_prep /assets /
RUN ibek support apt-install-runtime-packages --skip-non-native

# allow generated genicam files to be written for non root runtime user id
RUN chmod a+rw /epics/pvi-defs /epics/support/ADGenICam/db
RUN chmod a+rw -R /epics/pvi-defs /epics/support/ADGenICam/db \
/epics/generic-source/ibek-support

CMD ["bash", "-c", "${IOC}/start.sh"]

2 changes: 1 addition & 1 deletion ioc/start.sh
Original file line number Diff line number Diff line change
@@ -148,7 +148,7 @@ elif [ -f ${ibek_src} ]; then
sed -i "s/arvFeature/Aravis $instance_id/g" /epics/pvi-defs/ADAravis.pvi.device.yaml
sed -i "s/label: ADGenICam/label: GenICam $instance_id/g" /epics/pvi-defs/$instance_class.pvi.device.yaml
# remove ADDriver from GenICam device
sed -i "/ADDriver//d" /epics/pvi-defs/$instance_class.pvi.device.yaml
sed -i "s/ADDriver//" /epics/pvi-defs/$instance_class.pvi.device.yaml
fi
# TODO: pvi changes should allow us to remove the last 3 sed lines above
# a) you will be able to specify no paretn, b) you will be able to specify the label

0 comments on commit 57bd5b2

Please sign in to comment.