-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ogma-core: Add dockerfile. Refs #136.
Ogma doesn't currently generate a Dockerfile with the ROS packages. That makes it harder for users to know how to use the produce of Ogma. This commit adds a Dockerfile to the ROS template used by Ogma, and to the list of files installed with Ogma. The dockerfile simply compiles the monitoring application inside Space ROS.
- Loading branch information
1 parent
9e6ee42
commit c3c5063
Showing
2 changed files
with
17 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
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,16 @@ | ||
FROM osrf/space-ros:latest | ||
|
||
ARG USER=spaceros-user | ||
ARG PACKAGE_PATH=/home/${USER}/monitors | ||
ARG ROS_PATH=/home/${USER}/spaceros/ | ||
|
||
RUN mkdir -p ${PACKAGE_PATH}/src/ | ||
ADD copilot ${PACKAGE_PATH}/src/copilot | ||
USER root | ||
RUN chown -R ${USER} ${PACKAGE_PATH} | ||
USER ${USER} | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
WORKDIR ${PACKAGE_PATH} | ||
RUN source ${ROS_PATH}/install/setup.bash && \ | ||
colcon build |