Git Product home page Git Product logo

ros2_deb_builder's Introduction

ROS2 Debian Package Builder

Build debian package from ROS2 package, and create apt repository for distribution.

Environment

  • Docker
  • ROS2 Galactic

Build Docker Image

Run the following commands.

cd docker/
docker build --build-arg USERNAME=$(whoami) --build-arg USER_UID=$(id -u) --build-arg USER_GID=$(id -g) . -t ros2-deb-builder:galactic

Prepare for Building

GPG Keys

Please create a GPG key pair and put public key in repos/gpg and private key in script/key. Sample tool is stored in here. This process is required to create apt repository.

The List of repositories to build

This build tool uses vcs to pull repositories, and the target file is ws_galactic/src.repos. Please fill it before proceeding. If you add private repositories, please make sure you have the proper ssh key in your host machine (~/.ssh/). Docker container tries to mount this directory to pull private repositories.

Run Docker Container

Run the following commands.

cd {path_to_ros2_deb_builder}
docker run -it \
  -v /home/$(whoami)/.ssh:/home/$(whoami)/.ssh \
  -v `pwd`:/home/$(whoami)/ros2_deb_builder ros2-deb-builder:galactic

Run apt Repository

Since the previous steps have already created apt repository, all you need to do is just run http server. One of the simple ways is to use nginx docker container.

cd {path_to_ros2_deb_builder}
docker run -d --rm -v `pwd`/repos:/usr/share/nginx/html:ro -p 80:80 nginx

Access apt Repository

You can now use http://localhost/ as the apt repository. If it is the first time for your machine to access, follow this instruction to access the repository.

FAQ

Frequently asked questions are here.

References

ros2_deb_builder's People

Contributors

ynybonfennil avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.