Skip to content

Commit

Permalink
Add a note on how to build an OCI image in case of using older Docker…
Browse files Browse the repository at this point in the history
… versions

Signed-off-by: Piotr Sawicki <p.sawicki2@samsung.com>
  • Loading branch information
p-sawicki2 committed Oct 15, 2024
1 parent 1d298e9 commit 5574545
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/app-provisioning/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,20 @@ For details see https://github.com/islet-project/realm-metadata-tool
tar xf example_app.tar
rm example_app.tar

> [!NOTE]
> It is assumed that the recent versions of Docker are used, which by default produce OCI images.
> To generate OCI images on older docker version firstly you need to install docker-buildx package on your system (e.g. "apt install docker-buildx").
> Then, create a builder:
>
> docker buildx create --use
>
> Next, run the build process:
>
> docker buildx build --output type=oci,dest=example_app.tar . -f Dockerfile --tag=latest
>
> When signing the application using the `$ROOT/image-registry/ir-sign` tool, you need to
> add write permission to files located in the blobs/sha256 folder.
### Compile example app #2

You need ubuntu's aarch64 compiler and bear (`sudo apt install bear gcc-aarch64-linux-gnu`)
Expand Down

0 comments on commit 5574545

Please sign in to comment.