mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-02 03:32:23 +02:00
Provide a simple function to install the shipped tarball.
It leaves in `dangerzone.updater.install_local_container_tar()`
This commit is contained in:
parent
1187cf27fc
commit
b78fd237e1
1 changed files with 8 additions and 0 deletions
|
@ -499,3 +499,11 @@ def upgrade_container_image(
|
||||||
# Store the signatures just now to avoid storing them unverified
|
# Store the signatures just now to avoid storing them unverified
|
||||||
store_signatures(signatures, manifest_digest, pubkey)
|
store_signatures(signatures, manifest_digest, pubkey)
|
||||||
return manifest_digest
|
return manifest_digest
|
||||||
|
|
||||||
|
|
||||||
|
def install_local_container_tar(
|
||||||
|
pubkey: Optional[str] = DEFAULT_PUBKEY_LOCATION,
|
||||||
|
) -> None:
|
||||||
|
tarball_path = get_resource_path("container.tar")
|
||||||
|
log.debug("Installing container image %s", tarball_path)
|
||||||
|
upgrade_container_image_airgapped(tarball_path, pubkey)
|
||||||
|
|
Loading…
Reference in a new issue