Commit a3b0249c authored by levi's avatar levi
Browse files

added test composes

parent 09bcdcd1
version: '3.5'
services:
# publisher:
# build:
# context: ./ros2
# dockerfile: HelloWorldPublisher.Dockerfile
# network_mode: bridge
# restart: always
subscriber:
build:
context: ./ros2
dockerfile: HelloWorldSubscriber.Dockerfile
network_mode: bridge
restart: always
subscriber2:
build:
context: ./ros2
dockerfile: HelloWorldSubscriber.Dockerfile
network_mode: bridge
restart: always
ubuntu:
container_name: ubuntu
build:
context: ./ubuntu-network-test
restart: always
network_mode: bridge
# network_mode: host
# networks:
# - drobotti
\ No newline at end of file
ARG FROM_IMAGE=osrf/ros:foxy-desktop
ARG OVERLAY_WS=/opt/ros/overlay_ws
FROM $FROM_IMAGE AS cacher
WORKDIR /opt
RUN . /opt/ros/$ROS_DISTRO/setup.sh
# run launch file
CMD ["ros2","run","examples_rclcpp_minimal_publisher","publisher_member_function"]
\ No newline at end of file
ARG FROM_IMAGE=osrf/ros:foxy-desktop
ARG OVERLAY_WS=/opt/ros/overlay_ws
FROM $FROM_IMAGE AS cacher
WORKDIR /opt
RUN . /opt/ros/$ROS_DISTRO/setup.sh
# run launch file
CMD ["ros2","run","examples_rclcpp_minimal_subscriber","subscriber_member_function"]
\ No newline at end of file
version: '3.5'
# networks:
# vpn:
# external: true
# name: vpncloud0
services:
vpncloud:
container_name: vpn
build:
context: ./
restart: always
network_mode: host
cap_add:
- NET_ADMIN
devices:
- "/dev/net/tun:/dev/net/tun"
# ubuntu:
# depends_on:
# - vpncloud
# container_name: ubuntu
# build:
# context: ../ubuntu-network-test
# restart: always
# #network_mode: bridge
# #network_mode: host
# networks:
# - vpn
# rmq_server:
# container_name: rmq-srv
# build:
# context: ../
# dockerfile: ./docker/rmq-server/rmq_server.Dockerfile
# restart: always
# network_mode: host
# rmq_subscriber:
# container_name: rmq-sub
# build:
# context: ../
# dockerfile: ./docker/rmq-subscriber/rmq_subscriber.Dockerfile
# depends_on:
# - rmq_server
# # - teleop_terminal
# restart: always
# network_mode: host
# # networks:
# # - drobotti
# ros2_multicast_receive:
# container_name: ros2-multi
# build: ./ros2-multicast-test
# restart: always
# network_mode: host
# # networks:
# # - drobotti
\ No newline at end of file
version: '3.5'
networks:
vpn:
external: true
name: vpncloud0
services:
ubuntu:
container_name: ubuntu
build:
context: ../ubuntu-network-test
restart: always
#network_mode: bridge
#network_mode: host
networks:
- vpn
# rmq_server:
# container_name: rmq-srv
# build:
# context: ../
# dockerfile: ./docker/rmq-server/rmq_server.Dockerfile
# restart: always
# network_mode: host
# rmq_subscriber:
# container_name: rmq-sub
# build:
# context: ../
# dockerfile: ./docker/rmq-subscriber/rmq_subscriber.Dockerfile
# depends_on:
# - rmq_server
# # - teleop_terminal
# restart: always
# network_mode: host
# # networks:
# # - drobotti
# ros2_multicast_receive:
# container_name: ros2-multi
# build: ./ros2-multicast-test
# restart: always
# network_mode: host
# # networks:
# # - drobotti
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment