-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔨 Updated Dockerfile and ease-of-use script to run virtual_camera.
Signed-off-by: Bey Hao Yun <[email protected]>
- Loading branch information
1 parent
9315ae6
commit 02c5133
Showing
2 changed files
with
24 additions
and
13 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 |
---|---|---|
@@ -1,15 +1,25 @@ | ||
FROM ros:humble-perception-jammy | ||
|
||
MAINTAINER Bey Hao Yun <[email protected]> | ||
|
||
# Add user | ||
RUN adduser --quiet --disabled-password user | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
# Install OpenCV | ||
RUN apt-get update && \ | ||
apt-get install -y xauth xxd x11-xserver-utils && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /home/user/virtual_camera_ws | ||
RUN mkdir src | ||
COPY . src/virtual_camera | ||
|
||
# colcon compilation | ||
RUN . /opt/ros/$ROS_DISTRO/setup.sh \ | ||
&& colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release | ||
|
||
RUN sed -i '$isource "/home/user/virtual_camera_ws/install/setup.bash"' /ros_entrypoint.sh | ||
|
||
RUN chown -R user:user /home/user/ | ||
USER user | ||
|
||
WORKDIR /home/user | ||
ENTRYPOINT ["/ros_entrypoint.sh"] |
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