On 2024-05-07 15:56, Simon Lees wrote:
On 5/7/24 9:27 PM, Carlos E. R. wrote:
On 2024-05-07 12:32, Simon Lees wrote:
On 5/5/24 4:44 AM, Lew Wolfgang wrote:
...
It won't help with your air gap, unless its not really an air gap and your machine is network accessible to the ones you want to update. But for the interest of others on list I use https://github.com/Firstyear/opensuse-proxy-cache so that I only have to fetch tumbleweed updates once. Its a pretty easy podman container to setup.
I am impressed. :-o
This may be what I have wanted to have for decades.
But I don't understand how to install it, what I have to download and put where. I know nothing about podman or containers.
wiki page, howto, perhaps?
It really is as simple as described in the usage section (I chose podman over docker for reasons)
docker run -p 8080:8080 -v /your/storage/:/tmp/osuse_cache/ -u X:X firstyear/opensuse_proxy_cache:latest
command not found :-) I suppose I have to install docker first. Does that docker download whatever it needs? Not stored locally?
I have mine in a systemd unit for convenience (You don't want the mirror chain option unless you want everything to come from an Australian location).
Then just point your repos to http://127.0.0.1:8080 (or your IP Address) rather then http://download.opensuse.org
In this case i'm storing my cached data in /data/osuse_cache because its mounted on a secondary drive.
I have to try this.
[Unit] Description=openSUSE Proxy Cache.
[Service] Environment="MIRROR_CHAIN=https://mirrorcache-au.opensuse.org" ExecStart=podman run -e=$MIRROR_CHAIN -p 8080:8080 -v /data/osuse_cache/:/tmp/osuse_cache/ -u 1001:1001 firstyear/opensuse_proxy_cache:latest ExecStop=podman stop osuse_cache
[Install] WantedBy=multi-user.target
-- Cheers / Saludos, Carlos E. R. (from 15.5 x86_64 at Telcontar)