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

Restore oci-archive from locally stored files #44

Open
termoshtt opened this issue Jul 16, 2022 · 1 comment
Open

Restore oci-archive from locally stored files #44

termoshtt opened this issue Jul 16, 2022 · 1 comment

Comments

@termoshtt
Copy link
Owner

termoshtt commented Jul 16, 2022

Current implementation drops manifest and image configuration when saving.

@termoshtt
Copy link
Owner Author

We have to determine is where image configure and index.json are stored.

termoshtt added a commit that referenced this issue Apr 13, 2024
Changes
-----------------
- `ocipkg get` returns error if the container is already downloaded.
`ocipkg get --overwrite` option is added to remove existing.
- `ocipkg get` store image manifest as `.manifest.json` and raw blobs
where the contents are stored. For example, `ocipkg get
ghcr.io/termoshtt/ocipkg/static/rust:fb58644` yields following
directory. This helps managing non-`tar.gz` container including #78 and
#44

```
.
├── .blob
│   └── sha256
│       └── df643e35140fb7ee1c4703b5b14ae10ab9aa7971af0a9bcf8f1212c44a14f270
├── .manifest.json
└── libocipkg_static_rust.a
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant