JoVi
August 25, 2020, 7:34am
1
Hello everyone,
I really need the capability to build a snap offline. Background is the need of a “tagged” and rebuild able version of a specific revision.
The plan is to move the snap build process to a build server which I plan not to give internet access for many reasons.
For the thread
Is there a way to have “stage-package” semantics in a snapcraft file,
but to skip the implicit “apt update” or whatever snapcraft does while pulling
that requires Internet connectivity?
Because I really need the ability to build snaps without internet connectivity,
and doing the “stage-package” thing manually seems time-consuming, error-prone and fragile.
Are there simple workarounds, or would I have to implement a custom plugin?
Would be grateful for any pointers into the right direction! …
I heard it is planned, but not in a short term. That thread was in February 2019. Any news since then?
Thanks!
ogra
August 25, 2020, 7:54am
2
you could work around this by providing a local apt mirror (even an empty one) and poiting your sources.lists files to localhost … apt itself really doesnt care if it is online or not it just processes whats in sources.list(.d) …
JoVi
August 25, 2020, 8:59am
3
Well that is good enough for me ! Thanks @ogra