Skip to content

Commit

Permalink
Merge pull request edgexfoundry#897 from cherrycl/update-version
Browse files Browse the repository at this point in the history
fix(napa): Set version to variable in get-compose-file
  • Loading branch information
cloudxxx8 authored Jun 6, 2024
2 parents 894b30f + a27abfd commit f16db5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TAF/utils/scripts/docker/get-compose-file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ for compose in ${COMPOSE_FILE}; do

# Multiple Instance of device-modbus
sed -n "/^\ \ device-modbus:/,/^ [a-z].*:$/p" ${compose}.yml | sed '$d' > tmp/device-modbus_1.yml
VERSION_NUM=$(grep image tmp/device-modbus_1.yml|cut -d ':' -f3)
sed -i 's/device-modbus/device-modbus_1/g' tmp/device-modbus_1.yml
sed -i "s/device-modbus_1${USE_ARM64}:3.1.0/device-modbus${USE_ARM64}:3.1.0/g" tmp/device-modbus_1.yml
sed -i "s/device-modbus_1${USE_ARM64}:${VERSION_NUM}/device-modbus${USE_ARM64}:${VERSION_NUM}/g" tmp/device-modbus_1.yml
if [ "${USE_SECURITY}" = '-security-' ]; then
sed -i 's/- \/device-modbus_1/- \/device-modbus/g' tmp/device-modbus_1.yml
fi
Expand Down

0 comments on commit f16db5d

Please sign in to comment.