-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
huge refactoring to enable developing locally using docker
- Loading branch information
Showing
6 changed files
with
70 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
docker build -t tsdf-plusplus-ros-base:v0.1 base | ||
docker build --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g) -t tsdf-plusplus-ros-base:v0.1 base | ||
docker build -t tsdf-plusplus-ros-workspace:v0.1 workspace | ||
docker build -t tsdf-plusplus-ros-catkin-build:v0.1 catkin-build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
workspace_folder=$1 | ||
if [ -z "$1" ] | ||
then | ||
echo "Absolute path of the workspace folder not found" | ||
exit 1 | ||
fi | ||
mode=$2 | ||
if [ -z "$2" ] | ||
then | ||
mode="it" | ||
fi | ||
docker container run --rm -$mode \ | ||
--user $(id -u) \ | ||
--mount type=bind,source="${workspace_folder}",target=/home/ros/catkin_ws \ | ||
--name tsdf-plusplus-dev \ | ||
--workdir /home/ros/catkin_ws \ | ||
tsdf-plusplus-ros-base:v0.1 \ | ||
bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters