-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
11774d3
commit 71d96b9
Showing
5 changed files
with
47 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM osrf/space-ros:latest | ||
|
||
RUN mkdir -p "${HOME_DIR}/spaceros/demo/src" | ||
WORKDIR "${HOME_DIR}/spaceros/demo/src" | ||
RUN git clone https://github.com/ros2/teleop_twist_keyboard.git | ||
WORKDIR "${HOME_DIR}/spaceros/demo" | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
## Install the demo as Space ROS package | ||
ARG DEMO_SPACEROS_WS_PATH="${HOME_DIR}/spaceros/demo" | ||
# hadolint ignore=SC1091 | ||
RUN source /ros_entrypoint.sh -- && \ | ||
colcon build --merge-install --symlink-install \ | ||
--build-base "${DEMO_SPACEROS_WS_PATH}/build" \ | ||
--install-base "${DEMO_SPACEROS_WS_PATH}/install" && \ | ||
rm -rf ./log | ||
|
||
ENTRYPOINT ["/ros_entrypoint.sh"] | ||
CMD ["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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# Build the Docker image | ||
SCRIPT_DIR="$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" &>/dev/null && pwd)" | ||
PROJECT_DIR="$(dirname "${SCRIPT_DIR}")" | ||
TAG="space-ros-omnilrs" | ||
DOCKERFILE="${SCRIPT_DIR}/Dockerfile" | ||
|
||
DOCKER_BUILD_CMD=(docker build "${SCRIPT_DIR}" --tag ${TAG}) | ||
|
||
echo -e "\033[0;32m${DOCKER_BUILD_CMD[*]}\033[0m" | xargs | ||
|
||
# shellcheck disable=SC2068 | ||
exec ${DOCKER_BUILD_CMD[*]} |
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,9 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Setup the Space ROS environment | ||
source "${SPACEROS_DIR}/install/setup.bash" | ||
source "/home/spaceros-user/spaceros/demo/install/setup.bash" | ||
export IKOS_SCAN_NOTIFIER_FILES="" # make ikos create .ikosbin files for compiled packages | ||
|
||
exec "$@" |
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,2 @@ | ||
#!/bin/bash | ||
docker run --name spaceros-omni-lrs-container -it --rm --network=host --ipc=host space-ros-omnilrs:latest |
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