Korbs revisó este gist 1 month ago. Ir a la revisión
1 file changed, 45 insertions, 1 deletion
README.md
| @@ -1 +1,45 @@ | |||
| 1 | - | _ | |
| 1 | + | Add multi-architecture support to an OCI image. | |
| 2 | + | ||
| 3 | + | > SudoVanilla uses [`buildah`](https://buildah.io/) instead of Docker, as it | |
| 4 | + | > builds valid OCI images that are supported by the SudoVanilla OCI Registry. | |
| 5 | + | > The [SudoVanilla OCI Registry](https://oci.registry.sudovanilla.org/) is | |
| 6 | + | > powered by [Zot Registry](https://zotregistry.dev/), a OCI-native container | |
| 7 | + | > image registry. | |
| 8 | + | ||
| 9 | + | ## Build or Pull Images | |
| 10 | + | ||
| 11 | + | **Build Image** | |
| 12 | + | ```bash | |
| 13 | + | buildah build -t registry.org/image:amd64 | |
| 14 | + | buildah build -t registry.org/image:amd64 | |
| 15 | + | ``` | |
| 16 | + | ||
| 17 | + | **Pull Image** | |
| 18 | + | ||
| 19 | + | ```bash | |
| 20 | + | buildah pull -t registry.org/image:arm64 | |
| 21 | + | buildah pull -t registry.org/image:arm64 | |
| 22 | + | ``` | |
| 23 | + | ||
| 24 | + | ## Manifest | |
| 25 | + | ### Create | |
| 26 | + | ||
| 27 | + | Use the `manifest create` command to generate a new OCI image index and give it the `latest` tag name. | |
| 28 | + | ```bash | |
| 29 | + | buildah manifest create registry.org/image:latest | |
| 30 | + | ``` | |
| 31 | + | ||
| 32 | + | ### Combine Images | |
| 33 | + | ||
| 34 | + | Using the previous images that was previously built or pulled, apply them to the newly created manifest: | |
| 35 | + | ```bash | |
| 36 | + | buildah manifest add registry.org/image:latest registry.org/image:arm64 | |
| 37 | + | buildah manifest add registry.org/image:latest registry.org/image:arm64 | |
| 38 | + | ``` | |
| 39 | + | ||
| 40 | + | ### Push Image | |
| 41 | + | ||
| 42 | + | You can now push the `latest` tag to your preferred registry and it'll be uploaded with both architecture images intact. | |
| 43 | + | ```bash | |
| 44 | + | buildah manifest push registry.org/image:latest | |
| 45 | + | ``` | |
Korbs revisó este gist 1 month ago. Ir a la revisión
1 file changed, 1 insertion
README.md(archivo creado)
| @@ -0,0 +1 @@ | |||
| 1 | + | _ | |