CI can't reach internet to fetch rust packages

Andrew Bartlett abartlet at samba.org
Tue Aug 13 21:36:56 UTC 2024


On Tue, 2024-08-13 at 01:22 +0000, David Disseldorp via samba-technical 
wrote:
> On Tue, 13 Aug 2024 09:37:59 +1200, Andrew Bartlett via samba-
> technical wrote:
> ...
> > If you want access to the real internet, remove the socket wrapper
> > environment variables or otherwise disable it. 
> > But also, don't do that.
> 
> Indeed.
> 
> > At least in the past, the autobuild host does
> > not permit outbound access, so you will need to work with the
> > sysadmins. 
> > The preferred pattern from our C model of software development is
> > to
> > encode dependencies at image generation time, and manually install
> > on
> > the autobuild host.
> 
> "cargo vendor" should allow you to dump your (hopefully audited and
> trusted) dependencies in a directory somewhere and build from that.
> Would that be an option here, David?

This is also critical for reproducing historical builds and providing
long term support.  The upstream URLs make break.

This is why we keep all the old GitLab CI container images around from
the bootstrap system, while they should be able to be rebuilt, we have
had issues as you might expect. 

(I would love it if someone would implement a backup system for those
BTW). 

Andrew Bartlett


-- 
Andrew Bartlett (he/him)       https://samba.org/~abartlet/
Samba Team Member (since 2001) https://samba.org
Samba Team Lead                https://catalyst.net.nz/services/samba
Catalyst.Net Ltd

Proudly developing Samba for Catalyst.Net Ltd - a Catalyst IT group
company

Samba Development and Support: https://catalyst.net.nz/services/samba

Catalyst IT - Expert Open Source Solutions




More information about the samba-technical mailing list