Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 May 2022 16:12:49 -0700
From:      "Pat Maddox" <pat@patmaddox.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Suggestions for making private packages?
Message-ID:  <11B64E04-D856-4168-AC56-E1B74EE42334@patmaddox.com>
In-Reply-To: <DD1B4983-4E37-4974-8D8D-4CC217314A41@patmaddox.com>
References:  <DD1B4983-4E37-4974-8D8D-4CC217314A41@patmaddox.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11 Apr 2022, at 23:58, Pat Maddox wrote:

> We are considering using FreeBSD to deploy the proprietary software we =

> build.
>
> I am interested in using the package system to build and distribute =

> the software to our servers. I believe this will help us maintain =

> consistency and cleanliness.
>
> Right now I have a few ideas of how to do this:
>
> 1. Fork the ports tree, and add a directory for our software. Build as =

> usual.
> 2. Use portshaker to overlay our software onto the ports tree.
> 3. Use pkg-create directly.
>
> For those of you who write and deploy private software on FreeBSD, =

> what do you suggest?
>
> Thanks,
> Pat

I have made progress on this two different ways, using poudriere [1] and =

`pkg create` [2].

I=E2=80=99m not sure how to fit this into a CI / CD workflow. I want to b=
uild =

and deploy the latest version to staging, and then periodically promote =

that version to prod.

I don=E2=80=99t want to have to bump the port Makefile GH_TAGNAME with ev=
ery =

commit that passes tests. Maybe that=E2=80=99s unavoidable? Porter=E2=80=99=
s =

handbook docs say =E2=80=9CUsing the name of a branch here is incorrect=E2=
=80=9D for =

GH_TAGNAME [3].

How can I configure poudriere to build the latest version of our repo, =

as well as a version that we=E2=80=99ve designated for release? I think i=
t =

makes sense to use the same build mechanism (i.e. poudriere) for =

everything, rather than using `pkg create` for bleeding edge builds and =

poudriere for releases.

Pat

[1] =

https://github.com/patmaddox/my-freebsd-ports/blob/main/devel/ex_ample/Ma=
kefile
[2] https://github.com/patmaddox/ex_ample/blob/main/Makefile
[3] =

https://docs.freebsd.org/en/books/porters-handbook/makefiles/#makefile-ma=
ster_sites-github



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?11B64E04-D856-4168-AC56-E1B74EE42334>