-
Notifications
You must be signed in to change notification settings - Fork 187
Create Noetic dockerfiles #405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a77c0f3
add noetic to manifest
mikaelarguedas bba0ef8
generate noetic dockerfiles
mikaelarguedas 465aa0a
add noetic to docker library
mikaelarguedas 80d0c4a
add noetic CI jobs
mikaelarguedas cc4e832
patch python bootstrap packags by hand for initial release
mikaelarguedas 7c47700
update docker library
mikaelarguedas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,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:noetic-ros-core-buster ros-core/. | ||
| @docker build --tag=ros:noetic-ros-base-buster ros-base/. | ||
| @docker build --tag=ros:noetic-robot-buster robot/. | ||
| @docker build --tag=ros:noetic-perception-buster perception/. | ||
| # @docker build --tag=osrf/ros:noetic-desktop-buster desktop/. | ||
| # @docker build --tag=osrf/ros:noetic-desktop-full-buster desktop-full/. | ||
|
|
||
| pull: | ||
| @docker pull ros:noetic-ros-core-buster | ||
| @docker pull ros:noetic-ros-base-buster | ||
| @docker pull ros:noetic-robot-buster | ||
| @docker pull ros:noetic-perception-buster | ||
| # @docker pull osrf/ros:noetic-desktop-buster | ||
| # @docker pull osrf/ros:noetic-desktop-full-buster | ||
|
|
||
| clean: | ||
| @docker rmi -f ros:noetic-ros-core-buster | ||
| @docker rmi -f ros:noetic-ros-base-buster | ||
| @docker rmi -f ros:noetic-robot-buster | ||
| @docker rmi -f ros:noetic-perception-buster | ||
| # @docker rmi -f osrf/ros:noetic-desktop-buster | ||
| # @docker rmi -f osrf/ros:noetic-desktop-full-buster |
This file contains hidden or 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,9 @@ | ||
| # This is an auto generated Dockerfile for ros:desktop-full | ||
| # generated from docker_images/create_ros_image.Dockerfile.em | ||
| FROM osrf/ros:noetic-desktop-buster | ||
|
|
||
| # install ros packages | ||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| ros-noetic-desktop-full=1.5.0-1* \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
This file contains hidden or 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,9 @@ | ||
| # This is an auto generated Dockerfile for ros:desktop | ||
| # generated from docker_images/create_ros_image.Dockerfile.em | ||
| FROM ros:noetic-robot-buster | ||
|
|
||
| # install ros packages | ||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| ros-noetic-desktop=1.5.0-1* \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
This file contains hidden or 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,54 @@ | ||
| %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 | ||
| bootstrap_ros_tools: | ||
| 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 | ||
| 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 |
This file contains hidden or 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,9 @@ | ||
| # This is an auto generated Dockerfile for ros:perception | ||
| # generated from docker_images/create_ros_image.Dockerfile.em | ||
| FROM ros:noetic-ros-base-buster | ||
|
|
||
| # install ros packages | ||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| ros-noetic-perception=1.5.0-1* \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
This file contains hidden or 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,14 @@ | ||
| %YAML 1.1 | ||
| # ROS Dockerfile database | ||
| --- | ||
| platform: | ||
| os_name: debian | ||
| os_code_name: buster | ||
| rosdistro_name: noetic | ||
| user_name: ros | ||
| maintainer_name: | ||
| arch: amd64 | ||
| type: distribution | ||
| version: | ||
| release: ros | ||
| ros_version: 1 |
This file contains hidden or 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,9 @@ | ||
| # This is an auto generated Dockerfile for ros:robot | ||
| # generated from docker_images/create_ros_image.Dockerfile.em | ||
| FROM ros:noetic-ros-base-buster | ||
|
|
||
| # install ros packages | ||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| ros-noetic-robot=1.5.0-1* \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
This file contains hidden or 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,21 @@ | ||
| # This is an auto generated Dockerfile for ros:ros-base | ||
| # generated from docker_images/create_ros_image.Dockerfile.em | ||
| FROM ros:noetic-ros-core-buster | ||
|
|
||
| # install bootstrap tools | ||
| RUN apt-get update && apt-get install --no-install-recommends -y \ | ||
| build-essential \ | ||
| python-rosdep \ | ||
| python-rosinstall \ | ||
| python-vcstools \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # bootstrap rosdep | ||
| RUN rosdep init && \ | ||
| rosdep update --rosdistro $ROS_DISTRO | ||
|
|
||
| # install ros packages | ||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| ros-noetic-ros-base=1.5.0-1* \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
This file contains hidden or 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,32 @@ | ||
| # This is an auto generated Dockerfile for ros:ros-core | ||
| # generated from docker_images/create_ros_core_image.Dockerfile.em | ||
| FROM debian:buster | ||
|
|
||
| # install packages | ||
| RUN apt-get update && apt-get install -q -y --no-install-recommends \ | ||
| dirmngr \ | ||
| gnupg2 \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # setup keys | ||
| RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 | ||
|
|
||
| # setup sources.list | ||
| RUN echo "deb http://packages.ros.org/ros/ubuntu buster main" > /etc/apt/sources.list.d/ros1-latest.list | ||
|
|
||
| # setup environment | ||
| ENV LANG C.UTF-8 | ||
| ENV LC_ALL C.UTF-8 | ||
|
|
||
| ENV ROS_DISTRO noetic | ||
|
|
||
| # install ros packages | ||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| ros-noetic-ros-core=1.5.0-1* \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # setup entrypoint | ||
| COPY ./ros_entrypoint.sh / | ||
|
|
||
| ENTRYPOINT ["/ros_entrypoint.sh"] | ||
| CMD ["bash"] |
This file contains hidden or 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,6 @@ | ||
| #!/bin/bash | ||
| set -e | ||
|
|
||
| # setup ros environment | ||
| source "/opt/ros/$ROS_DISTRO/setup.bash" | ||
| exec "$@" |
This file contains hidden or 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,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:noetic-ros-core-focal ros-core/. | ||
| @docker build --tag=ros:noetic-ros-base-focal ros-base/. | ||
| @docker build --tag=ros:noetic-robot-focal robot/. | ||
| @docker build --tag=ros:noetic-perception-focal perception/. | ||
| # @docker build --tag=osrf/ros:noetic-desktop-focal desktop/. | ||
| # @docker build --tag=osrf/ros:noetic-desktop-full-focal desktop-full/. | ||
|
|
||
| pull: | ||
| @docker pull ros:noetic-ros-core-focal | ||
| @docker pull ros:noetic-ros-base-focal | ||
| @docker pull ros:noetic-robot-focal | ||
| @docker pull ros:noetic-perception-focal | ||
| # @docker pull osrf/ros:noetic-desktop-focal | ||
| # @docker pull osrf/ros:noetic-desktop-full-focal | ||
|
|
||
| clean: | ||
| @docker rmi -f ros:noetic-ros-core-focal | ||
| @docker rmi -f ros:noetic-ros-base-focal | ||
| @docker rmi -f ros:noetic-robot-focal | ||
| @docker rmi -f ros:noetic-perception-focal | ||
| # @docker rmi -f osrf/ros:noetic-desktop-focal | ||
| # @docker rmi -f osrf/ros:noetic-desktop-full-focal |
This file contains hidden or 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,9 @@ | ||
| # This is an auto generated Dockerfile for ros:desktop-full | ||
| # generated from docker_images/create_ros_image.Dockerfile.em | ||
| FROM osrf/ros:noetic-desktop-focal | ||
|
|
||
| # install ros packages | ||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| ros-noetic-desktop-full=1.5.0-1* \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
This file contains hidden or 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,14 @@ | ||
| #!/bin/bash | ||
| # http://windsock.io/automated-docker-image-builds-with-multiple-tags/ | ||
|
|
||
| set -e | ||
|
|
||
| # Parse image name for repo name | ||
| tagStart=$(expr index "$IMAGE_NAME" :) | ||
| repoName=${IMAGE_NAME:0:tagStart-1} | ||
|
|
||
| # Tag and push image for each additional tag | ||
| for tag in noetic-desktop-full; do | ||
| docker tag $IMAGE_NAME ${repoName}:${tag} | ||
| docker push ${repoName}:${tag} | ||
| done |
This file contains hidden or 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,9 @@ | ||
| # This is an auto generated Dockerfile for ros:desktop | ||
| # generated from docker_images/create_ros_image.Dockerfile.em | ||
| FROM ros:noetic-robot-focal | ||
|
|
||
| # install ros packages | ||
| RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
| ros-noetic-desktop=1.5.0-1* \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
This file contains hidden or 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,14 @@ | ||
| #!/bin/bash | ||
| # http://windsock.io/automated-docker-image-builds-with-multiple-tags/ | ||
|
|
||
| set -e | ||
|
|
||
| # Parse image name for repo name | ||
| tagStart=$(expr index "$IMAGE_NAME" :) | ||
| repoName=${IMAGE_NAME:0:tagStart-1} | ||
|
|
||
| # Tag and push image for each additional tag | ||
| for tag in noetic-desktop; do | ||
| docker tag $IMAGE_NAME ${repoName}:${tag} | ||
| docker push ${repoName}:${tag} | ||
| done |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, thought you meant the template wouldn't compile the same Dockerfiles, as if you had patched them manually.