Merge branch '14-create-docker-image-with-dependencies-installed-already'

This commit is contained in:
Luetkebohle Ingo (CR/AEX3) 2019-07-04 17:44:56 +02:00
commit 3cc5eb7149
2 changed files with 25 additions and 22 deletions

View file

@ -3,32 +3,15 @@ image: registry.gitlab.com/ros_tracing/ros2_tracing/ci-base:latest
variables: variables:
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
PACKAGES_LIST: ros2trace tracetools tracetools_launch tracetools_read tracetools_test tracetools_trace PACKAGES_LIST: ros2trace tracetools tracetools_launch tracetools_read tracetools_test tracetools_trace
base_image_id: registry.gitlab.com/ros_tracing/ros2_tracing/ci-base
before_script: services:
- vcs import < instrumentation.repos - docker:dind
- vcs import < ci_source_deps.repos
- apt-get update
- rosdep update
- rosdep install --from-paths . --ignore-src --rosdistro dashing -y --skip-keys "console_bridge fastcdr fastrtps libopensplice67 libopensplice69 rti-connext-dds-5.3.1 urdfdom_headers"
- apt-get purge -y ros-dashing-fastrtps
- lttng-sessiond --daemonize
# build:
# script:
# - colcon build --symlink-install --packages-up-to $PACKAGES_LIST
# - colcon test --packages-select $PACKAGES_LIST
# artifacts:
# paths:
# - install
# - build/*/test_results/*/*.xunit.xml
# - build/*/pytest.xml
# reports:
# junit:
# - build/*/test_results/*/*.xunit.xml
# - build/*/pytest.xml
build_enabled: build_enabled:
image: $base_image_id
script: script:
- lttng-sessiond --daemonize
- colcon build --symlink-install --cmake-args " -DWITH_LTTNG=ON" --packages-up-to $PACKAGES_LIST - colcon build --symlink-install --cmake-args " -DWITH_LTTNG=ON" --packages-up-to $PACKAGES_LIST
- colcon test --packages-select $PACKAGES_LIST - colcon test --packages-select $PACKAGES_LIST
artifacts: artifacts:
@ -40,3 +23,14 @@ build_enabled:
junit: junit:
- build/*/test_results/*/*.xunit.xml - build/*/test_results/*/*.xunit.xml
- build/*/pytest.xml - build/*/pytest.xml
except:
- /.*docker.*/
ci_base_image:
image: docker:stable
script:
- docker build --tag $base_image_id -f docker-ci-base/Dockerfile .
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
- docker push $base_image_id
only:
- /.*docker.*/

View file

@ -20,3 +20,12 @@ RUN apt-get install --no-install-recommends -y \
ENV RTI_NC_LICENSE_ACCEPTED=yes ENV RTI_NC_LICENSE_ACCEPTED=yes
RUN apt-get install --no-install-recommends -y \ RUN apt-get install --no-install-recommends -y \
rti-connext-dds-5.3.1 rti-connext-dds-5.3.1
RUN mkdir /root/ws
COPY . /root/ws
WORKDIR /root/ws
RUN vcs import < instrumentation.repos && vcs import < ci_source_deps.repos
RUN apt-get update && rosdep update && rosdep install --from-paths . --ignore-src --rosdistro dashing -y --skip-keys "console_bridge fastcdr fastrtps libopensplice67 libopensplice69 rti-connext-dds-5.3.1 urdfdom_headers"
RUN apt-get purge -y ros-dashing-fastrtps
RUN . /opt/ros/dashing/setup.sh && colcon build --symlink-install --cmake-args " -DWITH_LTTNG=ON" --packages-up-to ros2trace tracetools tracetools_launch tracetools_read tracetools_test tracetools_trace