Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jun 2017 14:28:05 +0200
From:      Niklaas Baudet von Gersdorff <stdin@niklaas.eu>
To:        freebsd-questions@freebsd.org
Subject:   Re: Building my own poudriere build system
Message-ID:  <20170624122804.d5cx7n446zqqs67z@box-hlm-03.niklaas.eu>
In-Reply-To: <EB53E429-681C-4FB1-BE58-E584362C8FCA@freebsd.org>
References:  <20170622160501.piqo5hsfwzx7gpvk@box-hlm-03.niklaas.eu> <EB53E429-681C-4FB1-BE58-E584362C8FCA@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--p674bpfnuw2tuwwo
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Bradley T. Hughes [2017-06-23 08:01 +0200] :

> I build in the cloud. Like you, I use an EC2 instance with
> poudriere and multiple versions of jails to test
> changes/patches. I haven't gone as far as to copy the packages
> to S3, though. My builder is running 24/7, and I've been using
> spot instances to keep the cost down despite using an
> m4.2xlarge.

I haven't thought about spot instances yet. They would be great
to further reduce costs. Thanks for sharing the idea!

> I like your Terraform skeleton. I have often wanted to do
> something similar, but never gotten around to it. I am curious
> how far you will be able to take it.

I would really like to get to the point that the EC2 instance is
only up and running (creating costs) when it builds ports.
I don't have to create packages that regularly, maybe 2-5 times
per month, thus paying for a powerful instance 24/7 really
doesn't make sense.

The main problem I face at this stage is that creating the ARMv6
jail for crossbuilding already takes 1-2 hours each time I spin
up the instance. Each time I deploy the infrastructure the jails
I use for building must be created again. I already tried storing
the jails on S3 too, but that's not really a time saver...

So, my new idea is to attach an additional *permanent* EBS drive
that can be re-attached each time a new EC2 instance is deployed.
On the EBS there is a ZFS filesystem that stores the jails. This
will generate additional costs but should be a huge time saver.

> Thanks for sharing! I'm glad I'm not the only one using EC2 for
> building ports :)

Yes, great to see that I am not alone with that approach too. :-)
Feel free to contribute if you find time (in my next commit I'll
add a proper license).

    Niklaas

--p674bpfnuw2tuwwo
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIcBAABCAAGBQJZTlrOAAoJECmqaRXQsC2fIioQAM+igkdZfiXjh/IW63hkZluc
lW0cuPJr8VDQ02UCBrRmAEDFXbn4KdiRArRXJtBOZ5lJPy6IJ3K8+g+sH6v0aMJe
Xnw2UmFf+UX0nkyd/zsrMT54RBBiRJ3eP667UP0DIXgCI70TtaHwiR+aV5/6/ZF/
Et6cjqVrdZOzb81Fz/rSqk/BibOu831+7onwPOIhytpL9ySIadiQCYInW0//TSLW
w/5PeZ77TCuadzstjkGa8h8OD9TkyPbzuGAYih56dPBTSXB3Y3f3HBKlhm9xjM2+
jmNQJwDHG0Pq+AquWAExWNR9fcxcEQK8XxB9FS4iRF5YOLyUekicHe23pcZ8cg8/
xDtRPaaQbMy+Upnh8BwsJ/66/WKeP1bwxyQp1rO+JpN8+Dhfs0T4Z9flougG/VO6
zTZGdTg9Av4V5zIvVj7FurfA5iHoQEtcBn/PmVZBjBA/Er92E6pPDcSwLojAcUlR
3ABg9F30DI2uPEzf/aY4hax3DwK0o/t2SLDPJ6GOC6U5LQFnMSXHTTRcxbS8AfWS
OUx5rFFnetAt11AVFAPBehQFTLLyTG8oMWgd1fBQ73y5pCt2P85XQt8HAEbIj0w4
rCQczbXc4bwYmGbDXm1ocIIsfZim7sJu56d8BZgX5Ef1pjtD/WHq1vcaEdF92m9+
FT4HiwGMGXH+SgCfn3yM
=Mffz
-----END PGP SIGNATURE-----

--p674bpfnuw2tuwwo--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170624122804.d5cx7n446zqqs67z>