Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
Signed-off-by: Daisuke Sato <[email protected]>
  • Loading branch information
daisukes committed Jun 14, 2024
1 parent 51edd0b commit d19d6ea
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bake-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,12 @@ fi

# replace ros Dockerfile FROM instruction to replace base image
# this isn't good, but cannot find alternative
while read -r line; do
sed 's=FROM.*=ARG\ FROM_IMAGE\
FROM\ $FROM_IMAGE=' "$line" > "$line.tmp"
done < <(find docker/docker_images/ -wholename */$ROS_DISTRO/*/Dockerfile)
if [[ -e ./docker/docker_images ]]; then
while read -r line; do
sed 's=FROM.*=ARG\ FROM_IMAGE\
FROM\ $FROM_IMAGE=' "$line" > "$line.tmp"
done < <(find docker/docker_images/ -wholename */$ROS_DISTRO/*/Dockerfile)
fi

# bake
if [[ -n $platform ]]; then
Expand Down

0 comments on commit d19d6ea

Please sign in to comment.