Re: error when try to use sudo command in recipe
Adrian Freihofer
Hi Simon
toggle quoted message
Show quoted text
I guess in the deploy folder (build/tmp/deploy/...) you will find a tar archive which can be used with e.g. docker import. If you need to upload the OCI image to a container registry skopeo might be used somehow like that: bitbake "skopeo-native:do_addto_recipe_sysroot" OCI_DIR="build/tmp/deploy/images/${MACHINE}/${TARGET_IMAGE}- ${MACHINE}.rootfs-oci" oe-run-native skopeo-native skopeo login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}" --authfile ${HOME}/.registry-auth.json oe-run-native skopeo-native skopeo copy oci:${OCI_DIR} docker://${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG}-${OCI_ARCH} -- authfile ${HOME}/.registry-auth.json If you need to provide the container for different architectures manifest-tool can do that. After uploading images to a registry the manifest tool can convert all the per ARCH images into a multi arch container image. Regards, Adrian On Thu, 2023-02-09 at 10:45 -0800, SIMON BABY wrote:
Hello, |
|