Commit 150be36
authored
feat: adopt selective dependency packaging (profiles) (#1228)
* architecture document for adding exclusions and profiles for offline buildpacks
* feat: adopt selective dependency packaging profiles
Add packaging_profiles to manifest.yml and wire --profile/--exclude/--include
flags through scripts/package.sh to buildpack-packager.
Depends on libbuildpack PR cloudfoundry/libbuildpack#212 which introduces
PackageWithOptions, resolveExclusions, and the three new CLI flags in
buildpack-packager.
Changes:
- manifest.yml: add packaging_profiles section with 'minimal' (28 deps)
and 'standard' (32 deps) profiles
- scripts/package.sh: parse and forward --profile, --exclude, --include
to buildpack-packager; update usage()
- README.md: document selective offline packaging, updated --help output
and package examples
- docs/DEVELOPING.md: document profile/exclude options in packaging section
- docs/buildpack-modes.md: add Selective Offline Packaging subsection1 parent 1cf1b00 commit 150be36
6 files changed
Lines changed: 1081 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
236 | 278 | | |
237 | 279 | | |
238 | 280 | | |
| |||
260 | 302 | | |
261 | 303 | | |
262 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
263 | 308 | | |
264 | 309 | | |
265 | 310 | | |
| |||
289 | 334 | | |
290 | 335 | | |
291 | 336 | | |
292 | | - | |
| 337 | + | |
293 | 338 | | |
294 | 339 | | |
295 | 340 | | |
296 | 341 | | |
297 | 342 | | |
298 | 343 | | |
299 | 344 | | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
300 | 357 | | |
301 | 358 | | |
302 | 359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
485 | 507 | | |
486 | 508 | | |
487 | 509 | | |
| |||
496 | 518 | | |
497 | 519 | | |
498 | 520 | | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
499 | 527 | | |
500 | 528 | | |
501 | 529 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
47 | 80 | | |
48 | 81 | | |
49 | 82 | | |
| |||
0 commit comments