This repository has been archived by the owner on May 10, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from Edvinas01/docker
Docker
- Loading branch information
Showing
3 changed files
with
62 additions
and
0 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,25 @@ | ||
FROM ros:kinetic-ros-base | ||
|
||
# Install libraries and tools. | ||
RUN apt-get update \ | ||
&& apt-get install -y wget \ | ||
&& wget -qO- https://deb.nodesource.com/setup_8.x | bash - \ | ||
&& apt-get install -y \ | ||
ros-kinetic-web-video-server \ | ||
ros-kinetic-rosbridge-suite \ | ||
python-pip \ | ||
nodejs \ | ||
&& pip install Flask | ||
|
||
WORKDIR /catkin_ws | ||
|
||
# Copy over required source files. | ||
COPY web_console src/web_console | ||
COPY commander src/commander | ||
|
||
# Build the source files. | ||
RUN bash -c 'source /opt/ros/kinetic/setup.bash; catkin_make' | ||
|
||
# Setup image entry point. | ||
COPY entrypoint.sh /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh", "roslaunch"] |
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,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
source '/opt/ros/kinetic/setup.bash' | ||
source '/catkin_ws/devel/setup.bash' | ||
|
||
exec "$@" |