Page MenuHomeDevCentral

Install Poudriere on devserver role
ClosedPublic

Authored by dereckson on Oct 2 2024, 20:21.
Tags
None
Referenced Files
F3922703: D3480.id.diff
Sat, Dec 21, 04:25
Unknown Object (File)
Wed, Dec 18, 05:20
Unknown Object (File)
Tue, Dec 17, 04:56
Unknown Object (File)
Mon, Dec 9, 17:40
Unknown Object (File)
Tue, Dec 3, 17:05
Unknown Object (File)
Tue, Dec 3, 17:05
Unknown Object (File)
Tue, Dec 3, 05:22
Unknown Object (File)
Tue, Dec 3, 01:27
Subscribers
None

Details

Summary

Create jail and ports tree to build and tests ports locally.

Ref T2039.

Test Plan
  • Deploy on WindRiver
  • Build a port with poudriere

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
poudriere
Build Status
Buildable 5538
Build 5819: arc lint + arc unit

Event Timeline

dereckson held this revision as a draft.
roles/devserver/poudriere/jails.sls
24

Perhaps we should already prepare the future.

On Ysul, we tested the ports for previous OS versions too, so that would mean:

def poudriere_jails():
    return [...]

Also we could allow poudriere to use:

  • /usr/ports
  • arbitrary directories defined in pillar under poudriere.ports_trees, for example /home/luser/dev/freebsd/ports

Those would need to run commands like:

$ poudriere ports -c -m null -M /usr/ports -p windriver
$ poudriere ports -c -m null -M //home/luser/dev/freebsd/ports -p luser-dev
dereckson published this revision for review.Oct 5 2024, 11:55
dereckson edited the test plan for this revision. (Show Details)
dereckson added a reviewer: DorianWinty.
dereckson added inline comments.
roles/devserver/poudriere/files/poudriere.conf
36

We define wrkdir to work more efficiently from RAM (we've 96 Gb, as I'm writing this comment 74G is used by ZFS ARC cache, that gives an idea how many free RAM we've - ZFS ARC takes what's available, the cache can shrink if other resources need it)

Tested with sudo poudriere testport -j base14 -p dereckson_dev -o security/vault-medusa so I can submit new port security/vault-medusa to the FreeBSD ports tree.

Result: https://windriver.nasqueron.org/poudriere/base14-dereckson_dev/latest/build.html

This revision is now accepted and ready to land.Oct 5 2024, 18:28
This revision was automatically updated to reflect the committed changes.