Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package caching #1

Open
cohoe opened this issue May 31, 2021 · 6 comments
Open

Package caching #1

cohoe opened this issue May 31, 2021 · 6 comments
Labels
Major Feature Usually a new stack or significant new functionality

Comments

@cohoe
Copy link
Member

cohoe commented May 31, 2021

From CFCC/TurboPuppet#35

Sonatype Nexus (Yum and Choco)

Local package cache

@cohoe cohoe added the Major Feature Usually a new stack or significant new functionality label May 31, 2021
@idontusenumbers
Copy link

The frustrating part about nexus is you gotta set it up on every client =/ Is there a work around? I suppose puppet makes that bit easier.

@cohoe
Copy link
Member Author

cohoe commented Jun 1, 2021

I don't know if we can combine it with the lancache technology. But yeah, I suspect it's gonna require local config. Puppet "should" make that do-able for all of our managed hosts.

@cohoe
Copy link
Member Author

cohoe commented May 13, 2022

This doesn't actually get us anything since the installers for everything are scattered across the internet. Only the metadata package can be cached and that's so small it's meaningless.

@cohoe cohoe closed this as completed May 13, 2022
@idontusenumbers
Copy link

Are you sure? nexus works for me for java packages (i think?); I thought it proxied everything; does it not proxy the data files?

@cohoe
Copy link
Member Author

cohoe commented May 13, 2022

Yeah for other package types (like Maven or even RPM/DEBs) the entire contents of the package are hosted. Chocolatey (NuGet) works by wrapping up install scripts but pointing to 3rd party hosting services for the actual Windows MSIs or EXEs. For example, GoogleChrome has you grab the installer from dl.google.com but feeds it into an install script hosted in the Chocolatey package.

@cohoe
Copy link
Member Author

cohoe commented May 15, 2022

Ok maybe this isn't as dead as I thought. While I cannot cache the source mirrors, I can centralize the download location. And that location can be a network share. https://docs.chocolatey.org/en-us/guides/usage/change-cache A quick test shows this actually works!

A hidden (pun intended) bonus: Choco is intended to be run as administrator which is reasonable. File shares can be mounted only within the administrator context letting us secretly mount drive letters without exposing them to campers to mess around in.

@cohoe cohoe reopened this May 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Major Feature Usually a new stack or significant new functionality
Projects
None yet
Development

No branches or pull requests

2 participants