Skip to content

Commit

Permalink
Use the same working directory for builds in container as we do
Browse files Browse the repository at this point in the history
for normal case.
  • Loading branch information
sobomax committed Mar 1, 2023
1 parent cc91247 commit c4a6e3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/build/dockerize.sub
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if [ -e /tmp/docker_opensips.cid ]
then
exec docker exec -w /work --env COMPILER --env BUILD_OS `cat /tmp/docker_opensips.cid` sh -x "${0}" "${@}"
exec docker exec -w `pwd` --env COMPILER --env BUILD_OS `cat /tmp/docker_opensips.cid` sh -x "${0}" "${@}"
fi
2 changes: 1 addition & 1 deletion scripts/build/start_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ fi

sudo apt-get update
sudo apt-get install -y qemu-user-static
docker run --cidfile /tmp/docker_opensips.cid -d --restart=always --platform linux/${DOCKR_PLATFORM} -v `pwd`:/work ${DOCKR_BASE} sleep infinity
docker run --cidfile /tmp/docker_opensips.cid -d --restart=always --platform linux/${DOCKR_PLATFORM} -v `pwd`:`pwd` ${DOCKR_BASE} sleep infinity

0 comments on commit c4a6e3f

Please sign in to comment.