- Notifications
You must be signed in to change notification settings - Fork0
flavienbwk/ppa-mirror-docker
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Dockerized PPA downloader for apt installs.
Since Ubuntu 20.04,snap is the new package management standard for Ubuntu, over the old-schoolapt. Unlikeapt,snap packages embark all dependencies into a single file to be easily deployed (packages are self-contained).
However, it requires tricky configuration for offline infrastructures. For example, in Ubuntu 22.04, Chromium is not in the officialapt mirror anymore, which is either installable throughsnap orthrough the install of a PPA (Personal Packages Archives). This is not possible on "on-the-edge" infrastructures because it requires Internet.
This repositories allows to easily retrieve files from a specific PPA for Ubuntu systems, for packages to be downloadable through the traditionalapt command.
It is useful for large-clients infrastructures. Another reason might besnap is not allowed to be used by your organization.
Note : If you are allowed to use
snapand only have 1 package to download, you might considerdownloading it manually.
Copy and edit the
.envfile with your own configurationcp .env.example .env
Run the
mirrorcontainer :docker-compose builddocker-compose run mirror
Tips: We recommend you downloading the mirror froma cloud provider and then transfer files to your computer.
Check your mirroring succeeded typing
du -sh ./mirrorto check the folder volume. Size varies depending on the PPA downloaded.Run the server :
docker-compose up -d server
Server will run on
localhost:8080
Add the GPG keys of the downloaded PPAs
cat ./mirror/ppa.launchpadcontent.net/savoury1/ffmpeg4/ubuntu/savoury1-ffmpeg4.pgp| gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/savoury1-ffmpeg4.pgp --import -cat ./mirror/ppa.launchpadcontent.net/savoury1/chromium/ubuntu/savoury1-chromium.pgp| gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/savoury1-chromium.pgp --import -
Make your Ubuntu computer point to your mirror by creating a
/etc/apt/source.list.d/ppa-mirror.listfile as follow :# For default example with ppa.launchpadcontent.net/savoury1 on Ubuntu Jammy (amd64)deb [arch=amd64] http://localhost:8080/ppa.launchpadcontent.net/savoury1/ffmpeg4/ubuntu jammy maindeb [arch=amd64] http://localhost:8080/ppa.launchpadcontent.net/savoury1/chromium/ubuntu jammy main
👉 Feel free to add a reverse proxy or update thenginx configuration file to secure the mirror with SSL/TLS
👉 Feel free to sendpull requests as well !
About
Dockerized PPA downloader for apt installs.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.