RDTK / generator

A tool for creating Jenkins jobs and other things from recipes describing software projects
GNU General Public License v3.0
21 stars 3 forks source link

Improve dependency install #43

Closed LeroyR closed 9 months ago

LeroyR commented 4 years ago

Is your feature request related to a problem? Please describe. Most distributions require adding the ROS ppa to install dependencies. This is nowhere documented after running generate.

Example: When I call the generator like this: After calling

build-generator platform-requirements …

Most distributions(ROS) require adding of custom PPA which is documented nowhere

When I call the generator like this:

build-generator generate …

the output does not tell me that i may have to install dependencies

Describe the solution you'd like

scymtym commented 4 years ago

Add the possibility to define additional PPA+Keys that for a platform

For the prototype docker stuff, I use the following:

platform-requires:
  ubuntu:
    packages:
      - …
    keys:
      - http://packages.osrfoundation.org/gazebo.key
    repositories:
      - deb http://packages.osrfoundation.org/gazebo/ubuntu-stable xenial main

Is that close to what you mean?

I would like it if the generator can prompt for the addition of PPAs defined within the distribution. Maybe after platform-requirements call?

What do you mean by "prompt"? And would the effect be?

Add a generator-message variable to distributions where i can add custom messages after generate calls (default something along "Remember to run platform-requirements and install missing dependencies. "

Good idea. Please make a separate issue for this.

LeroyR commented 4 years ago

Add the possibility to define additional PPA+Keys that for a platform

For the prototype docker stuff, I use the following:

platform-requires:
  ubuntu:
    packages:
      - …
    keys:
      - http://packages.osrfoundation.org/gazebo.key
    repositories:
      - deb http://packages.osrfoundation.org/gazebo/ubuntu-stable xenial main

Is that close to what you mean?

Looks good.

I would like it if the generator can prompt for the addition of PPAs defined within the distribution. Maybe after platform-requirements call?

What do you mean by "prompt"? And would the effect be?

Depends how easy it should be for the user:

  1. Output of required PPA like deps now
  2. Output install commands e.g. sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'. , apt get install ....
  3. "would you like to add/install ... now y/n" and automatic installation

Add a generator-message variable to distributions where i can add custom messages after generate calls (default something along "Remember to run platform-requirements and install missing dependencies. "

Good idea. Please make a separate issue for this.

44

LeroyR commented 9 months ago

1c6a103293ea1b935d0d3e4d5589d0b680847a26 works for this