1config BR2_TARGET_ROOTFS_OCI 2 bool "oci image" 3 help 4 Build an OCI (Open Container Initiative) image. 5 6 By default, the image is generated in a directory called 7 rootfs-oci: 8 9 $ cd output/images 10 $ ls rootfs-oci/ 11 blobs index.json oci-layout 12 13 You can push the image to a registry. Example using skopeo: 14 15 $ skopeo copy --dest-creds <user>:<pass> \ 16 oci:rootfs-oci:<tag> docker://<user>/<image>[:tag] 17 18 And pull/run it with docker: 19 20 $ docker run -it <user>/<image>[:tag] 21 22if BR2_TARGET_ROOTFS_OCI 23 24config BR2_TARGET_ROOTFS_OCI_AUTHOR 25 string "author name and/or email address" 26 default "Buildroot" 27 help 28 Name and/or email address of the person which created the 29 image. 30 31config BR2_TARGET_ROOTFS_OCI_TAG 32 string "image tag" 33 default "latest" 34 help 35 Tag to be used in the container image. If empty, 'latest' will 36 be used by default. 37 38config BR2_TARGET_ROOTFS_OCI_ENTRYPOINT 39 string "entrypoint" 40 default "sh" 41 help 42 Command to execute when the container starts. 43 44config BR2_TARGET_ROOTFS_OCI_ENTRYPOINT_ARGS 45 string "entrypoint arguments" 46 help 47 Default arguments to the entrypoint of the container. 48 49config BR2_TARGET_ROOTFS_OCI_WORKDIR 50 string "working directory" 51 help 52 Working directory of the entrypoint process in the 53 container. 54 55config BR2_TARGET_ROOTFS_OCI_UID 56 string "username or UID" 57 default "0" 58 help 59 The username or UID of user the process run as. 60 61config BR2_TARGET_ROOTFS_OCI_ENV_VARS 62 string "environment variables" 63 help 64 Default environment variables for the container. 65 Space-separated list of variable=value assignments. 66 67config BR2_TARGET_ROOTFS_OCI_PORTS 68 string "ports" 69 help 70 Default set of ports to expose from a container running 71 this image as a space-separted list of ports in the following 72 format: 73 74 <port>/tcp, <port>/udp, <port> (same as <port>/tcp). 75 76config BR2_TARGET_ROOTFS_OCI_LABELS 77 string "labels" 78 help 79 Metadata in the format KEY=VALUE for the container compliant 80 with OCI annotation rules. If KEY starts with a dot, it will 81 be prefixed with "org.opencontainers.image" 82 (e.g. .url -> org.opencontainers.image.url). 83 84config BR2_TARGET_ROOTFS_OCI_ARCHIVE 85 bool "pack oci image into a tar archive" 86 help 87 Select whether the image should be packed into a TAR archive. 88 89endif 90