canonical / canonical/layer-basic

Improved package support/modularization

Open
#74 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
10
Forks
42
PR merge metrics
No merged PRs in 30d

Description

The way the layer currently handles packages is inconsistent. Packages to be installed via apt are placed into layer.yaml, but python packages are in wheelhouse.txt, and there's no support for other packaging formats, such as snaps or npm.

A more modular approach would allow developers to write support for a particular packaging format, with a consistent way to install them. Two possible formats of layer.yaml to support this idea:

``` yaml
options:
basic:
packages:
- apt:traceroute
- pip:paramiko==2.0.1
- npm:grunt
- npm:grunt-cli
- snap:hello-world
```

``` yaml
options:
basic:
packages:
apt:
- traceroute
pip:
- paramiko==2.0.1
npm:
- grunt
- grunt-cli
snap:
- hello-world
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.