Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
34 changes: 34 additions & 0 deletions ros/.config/v2/Makefile.em
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
all: help

help:
@echo ""
@echo "-- Help Menu"
@echo ""
@echo " 1. make build - build all images"
@echo " 2. make pull - pull all images"
@echo " 3. make clean - remove all images"
@echo ""

build:
@docker build --tag=ros:$release_name-ros-core-$os_code_name ros-core/.
@docker build --tag=ros:$release_name-ros-base-$os_code_name ros-base/.
@docker build --tag=ros:$release_name-robot-$os_code_name robot/.
@docker build --tag=ros:$release_name-perception-$os_code_name perception/.
# @docker build --tag=osrf/ros:$release_name-desktop-$os_code_name desktop/.
# @docker build --tag=osrf/ros:$release_name-desktop-full-$os_code_name desktop-full/.

pull:
@docker pull ros:$release_name-ros-core-$os_code_name
@docker pull ros:$release_name-ros-base-$os_code_name
@docker pull ros:$release_name-robot-$os_code_name
@docker pull ros:$release_name-perception-$os_code_name
# @docker pull osrf/ros:$release_name-desktop-$os_code_name
# @docker pull osrf/ros:$release_name-desktop-full-$os_code_name

clean:
@docker rmi -f ros:$release_name-ros-core-$os_code_name
@docker rmi -f ros:$release_name-ros-base-$os_code_name
@docker rmi -f ros:$release_name-robot-$os_code_name
@docker rmi -f ros:$release_name-perception-$os_code_name
# @docker rmi -f osrf/ros:$release_name-desktop-$os_code_name
# @docker rmi -f osrf/ros:$release_name-desktop-full-$os_code_name
56 changes: 56 additions & 0 deletions ros/.config/v2/images.yaml.em
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
%YAML 1.1
# ROS Dockerfile database
---
images:
ros-core:
base_image: @(os_name):@(os_code_name)
maintainer_name: @(maintainer_name)
template_name: docker_images/create_ros_core_image.Dockerfile.em
entrypoint_name: docker_images/ros_entrypoint.sh
template_packages:
- docker_templates
ros_packages:
- ros-core
ros-base:
base_image: @(user_name):@(rosdistro_name)-ros-core-@(os_code_name)
maintainer_name: @(maintainer_name)
template_name: docker_images/create_ros_image.Dockerfile.em
template_packages:
- docker_templates
ros_packages:
- ros-base
robot:
base_image: @(user_name):@(rosdistro_name)-ros-base-@(os_code_name)
maintainer_name: @(maintainer_name)
template_name: docker_images/create_ros_image.Dockerfile.em
template_packages:
- docker_templates
ros_packages:
- robot
perception:
base_image: @(user_name):@(rosdistro_name)-ros-base-@(os_code_name)
maintainer_name: @(maintainer_name)
template_name: docker_images/create_ros_image.Dockerfile.em
template_packages:
- docker_templates
ros_packages:
- perception
desktop:
base_image: @(user_name):@(rosdistro_name)-robot-@(os_code_name)
maintainer_name: @(maintainer_name)
template_name: docker_images/create_ros_image.Dockerfile.em
template_packages:
- docker_templates
ros_packages:
- desktop
post_env:
NVIDIA_VISIBLE_DEVICES: "${NVIDIA_VISIBLE_DEVICES:-all}"
NVIDIA_DRIVER_CAPABILITIES: "${NVIDIA_DRIVER_CAPABILITIES:+$NVIDIA_DRIVER_CAPABILITIES,}graphics"
desktop-full:
base_image: osrf/@(user_name):@(rosdistro_name)-desktop-@(os_code_name)
maintainer_name: @(maintainer_name)
template_name: docker_images/create_ros_image.Dockerfile.em
template_packages:
- docker_templates
ros_packages:
- desktop-full
13 changes: 13 additions & 0 deletions ros/.config/v2/platform.yaml.em
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
%YAML 1.1
# ROS Dockerfile database
---
platform:
os_name: $os_name
os_code_name: $os_code_name
rosdistro_name: $release_name
user_name: ros
maintainer_name:
arch: amd64
type: distribution
version:
release: ros
34 changes: 20 additions & 14 deletions ros/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@ defaults:
hook_names:
post_push: .hooks/legacy/post_push.em

default: &DEFAULT
templates: &DEFAULT_TEMPLATES
images: .config/images.yaml.em
makefile: .config/Makefile.em
platform: .config/platform.yaml.em
default: &DEFAULT_V1
templates: &DEFAULT_TEMPLATES_V1
images: .config/v1/images.yaml.em
makefile: .config/v1/Makefile.em
platform: .config/v1/platform.yaml.em

default: &DEFAULT_V2
templates: &DEFAULT_TEMPLATES_V2
images: .config/v2/images.yaml.em
makefile: .config/v2/Makefile.em
platform: .config/v2/platform.yaml.em

default: &DEFAULT_LEGACY
templates: &DEFAULT_TEMPLATES_LEGACY
Expand Down Expand Up @@ -100,7 +106,7 @@ release_names:
ubuntu:
os_code_names:
trusty:
<<: *DEFAULT
<<: *DEFAULT_V1
archs:
- amd64
- arm32v7
Expand Down Expand Up @@ -128,7 +134,7 @@ release_names:
ubuntu:
os_code_names:
trusty:
<<: *DEFAULT
<<: *DEFAULT_V1
archs:
- amd64
- arm32v7
Expand Down Expand Up @@ -157,7 +163,7 @@ release_names:
ubuntu:
os_code_names:
xenial:
<<: *DEFAULT
<<: *DEFAULT_V1
archs:
- amd64
- arm32v7
Expand All @@ -183,7 +189,7 @@ release_names:
debian:
os_code_names:
jessie:
<<: *DEFAULT
<<: *DEFAULT_V1
archs:
- amd64
- arm64v8
Expand All @@ -207,7 +213,7 @@ release_names:
ubuntu:
os_code_names:
xenial:
<<: *DEFAULT
<<: *DEFAULT_V1
archs:
- amd64
- arm32v7
Expand All @@ -231,7 +237,7 @@ release_names:
- "$release_name-perception"
- "$release_name-perception-$os_code_name"
zesty:
<<: *DEFAULT
<<: *DEFAULT_V1
archs:
- amd64
tag_names:
Expand All @@ -251,7 +257,7 @@ release_names:
debian:
os_code_names:
stretch:
<<: *DEFAULT
<<: *DEFAULT_V1
archs:
- amd64
- arm64v8
Expand All @@ -274,7 +280,7 @@ release_names:
ubuntu:
os_code_names:
bionic:
<<: *DEFAULT
<<: *DEFAULT_V2
archs:
- amd64
- arm32v7
Expand All @@ -301,7 +307,7 @@ release_names:
debian:
os_code_names:
stretch:
<<: *DEFAULT
<<: *DEFAULT_V2
archs:
- amd64
- arm64v8
Expand Down
3 changes: 3 additions & 0 deletions ros/melodic/debian/stretch/desktop/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ RUN apt-get update && apt-get install -y \
ros-melodic-desktop=1.4.1-0* \
&& rm -rf /var/lib/apt/lists/*

# set environment variables
ENV NVIDIA_VISIBLE_DEVICES ${NVIDIA_VISIBLE_DEVICES:-all}
ENV NVIDIA_DRIVER_CAPABILITIES ${NVIDIA_DRIVER_CAPABILITIES:+$NVIDIA_DRIVER_CAPABILITIES,}graphics
3 changes: 3 additions & 0 deletions ros/melodic/debian/stretch/images.yaml.em
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ images:
- docker_templates
ros_packages:
- desktop
post_env:
NVIDIA_VISIBLE_DEVICES: "${NVIDIA_VISIBLE_DEVICES:-all}"
NVIDIA_DRIVER_CAPABILITIES: "${NVIDIA_DRIVER_CAPABILITIES:+$NVIDIA_DRIVER_CAPABILITIES,}graphics"
desktop-full:
base_image: osrf/@(user_name):@(rosdistro_name)-desktop-@(os_code_name)
maintainer_name: @(maintainer_name)
Expand Down
3 changes: 3 additions & 0 deletions ros/melodic/ubuntu/bionic/desktop/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ RUN apt-get update && apt-get install -y \
ros-melodic-desktop=1.4.1-0* \
&& rm -rf /var/lib/apt/lists/*

# set environment variables
ENV NVIDIA_VISIBLE_DEVICES ${NVIDIA_VISIBLE_DEVICES:-all}
ENV NVIDIA_DRIVER_CAPABILITIES ${NVIDIA_DRIVER_CAPABILITIES:+$NVIDIA_DRIVER_CAPABILITIES,}graphics
3 changes: 3 additions & 0 deletions ros/melodic/ubuntu/bionic/images.yaml.em
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ images:
- docker_templates
ros_packages:
- desktop
post_env:
NVIDIA_VISIBLE_DEVICES: "${NVIDIA_VISIBLE_DEVICES:-all}"
NVIDIA_DRIVER_CAPABILITIES: "${NVIDIA_DRIVER_CAPABILITIES:+$NVIDIA_DRIVER_CAPABILITIES,}graphics"
desktop-full:
base_image: osrf/@(user_name):@(rosdistro_name)-desktop-@(os_code_name)
maintainer_name: @(maintainer_name)
Expand Down