Skip to content

Commit

Permalink
[Docker] add an argument, AERO_TYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
YoheiKakiuchi committed May 30, 2019
1 parent 36d42cc commit ffd9217
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
11 changes: 5 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,16 @@ services:

env:
- DISTR=indigo BASEIMG=ros:indigo-robot
- DISTR=kinetic BASEIMG=ros:kinetic-robot
- DISTR=melodic BASEIMG=ros:melodic-robot
- DISTR=kinetic BASEIMG=osrf/ros:kinetic-desktop
- DISTR=melodic BASEIMG=osrf/ros:melodic-desktop

before_script:
- docker pull ${BASEIMG}

script:
- docker build -f Dockerfile.${DISTR} --tag ros:aero_${DISTR} --build-arg RUN_TESTS=true .

matrix:
allow_failures:
- env: DISTR=indigo BASEIMG=ros:indigo-robot
- env: DISTR=melodic BASEIMG=ros:melodic-robot

- env: DISTR=melodic BASEIMG=osrf/ros:melodic-desktop
5 changes: 3 additions & 2 deletions Dockerfile.kinetic
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM ros:kinetic-robot
FROM osrf/ros:kinetic-desktop
SHELL ["bash", "-c"]

ENV WORKSPACE /catkin_ws

ARG RUN_TESTS=false
ARG AERO_TYPE=typeF

# prepare catkin and all euslisp packages
RUN apt-get -q -qq update && apt-get -q -qq install -y \
Expand Down Expand Up @@ -31,7 +32,7 @@ RUN source /opt/ros/${ROS_DISTRO}/setup.bash \

WORKDIR ${WORKSPACE}/src/aero-ros-pkg/aero_description
RUN source ${WORKSPACE}/devel/setup.bash \
&& ./setup.sh typeF
&& ./setup.sh $AERO_TYPE

WORKDIR ${WORKSPACE}
## build check
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile.melodic
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM ros:melodic-robot
FROM osrf/ros:melodic-desktop
SHELL ["bash", "-c"]

ENV WORKSPACE /catkin_ws

ARG RUN_TESTS=false
ARG AERO_TYPE=typeF

# prepare catkin and all euslisp packages
RUN apt-get -q -qq update && apt-get -q -qq install -y \
Expand Down Expand Up @@ -31,7 +32,7 @@ RUN source /opt/ros/${ROS_DISTRO}/setup.bash \

WORKDIR ${WORKSPACE}/src/aero-ros-pkg/aero_description
RUN source ${WORKSPACE}/devel/setup.bash \
&& ./setup.sh typeF
&& ./setup.sh $AERO_TYPE

WORKDIR ${WORKSPACE}
## build check
Expand Down

0 comments on commit ffd9217

Please sign in to comment.