diff --git a/Others/image-list.yml b/Others/image-list.yml index d392f2f73481533da34e6427426d27b312f55245..18855161386556a1a746151ef6ce0f758b2fbbc9 100644 --- a/Others/image-list.yml +++ b/Others/image-list.yml @@ -82,4 +82,5 @@ images: nagios: nagios libyuv: libyuv spring-cloud: spring-cloud - llvm: llvm \ No newline at end of file + llvm: llvm + splitter: splitter \ No newline at end of file diff --git a/Others/splitter/1.0.1/24.03-lts-sp2/Dockerfile b/Others/splitter/1.0.1/24.03-lts-sp2/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..d711bfb1c9993a2c4b5e79fdf53595d4f01f3e27 --- /dev/null +++ b/Others/splitter/1.0.1/24.03-lts-sp2/Dockerfile @@ -0,0 +1,24 @@ +# Dockerfile for the SDF Generator environment + +# Start from a specific openEuler release. +ARG BASE=openeuler/openeuler:24.03-lts-sp2 +FROM ${BASE} +ARG VERSION=1.0.1 + +# Install all the dependencies for the splitter tool. +RUN dnf install -y \ + python3-dnf \ + git \ + python3-pip \ + cpio \ + binutils \ + file && \ + dnf clean all + +# Install the splitter tool itself and its dependencies. +RUN git clone --depth 1 -b v${VERSION} https://gitee.com/openeuler/splitter.git \ + && cd splitter \ + && pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple . \ + && cd ../ && rm -rf splitter + +CMD ["/bin/bash"] diff --git a/Others/splitter/README.md b/Others/splitter/README.md new file mode 100644 index 0000000000000000000000000000000000000000..a70af747183c2a8999a9f7d69dc8ba7021c7cfe5 --- /dev/null +++ b/Others/splitter/README.md @@ -0,0 +1,48 @@ +# Quick reference + +- The official splitter docker image. + +- Maintained by: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative). + +- Where to get help: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative), [openEuler](https://gitee.com/openeuler/community). + +# splitter | openEuler +Current splitter docker images are built on the [openEuler](https://repo.openeuler.org/). This repository is free to use and exempted from per-user rate limits. + +The splitter tool is used to generate the raw materials(slices) to building openEuler distroless images. The final distroless images are then created and published using EulerPublisher. + +Learn more about splitter on [openEuler/splitter](https://gitee.com/openeuler/splitter)⁠. + +# Supported tags and respective Dockerfile links +The tag of each `splitter` docker image is consist of the version of `splitter` and the version of basic image. The details are as follows + +| Tag | Currently | Architectures | +|-----------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------|---------------| +| [1.0.1-oe2403sp2](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/splitter/1.0.1/24.03-lts-sp2/Dockerfile) | splitter 1.0.1 on openEuler 24.03-LTS-SP2 | amd64, arm64 | + +# Usage +In this usage, users can select the corresponding `{Tag}` based on their requirements. + +- Pull the `openeuler/splitter` image from docker + + ```bash + docker pull openeuler/splitter:{Tag} + ``` + +- Generating slices with splitter: + + `splitter` use the cut command-line function to split software packages into required slices. Example: + + ``` + splitter cut -r 24.03-LTS -a x86_64 -o /path/to/output python3_standard python3_utils + ``` + + In this command: + * `-r` / `--release` specifies the openEuler version for the slices. + * `-a` / `--arch` specifies the OS architecture. + * `-o` / `--output` specifies the output directory for the generated slices. + * `python3_standard python3_utils` are the slices the user chooses to generate. + All the generate slices will be packaged and stored iin the `/path/to/output` directory. + +# Question and answering +If you have any questions or want to use some special features, please submit an issue or a pull request on [openeuler-docker-images](https://gitee.com/openeuler/openeuler-docker-images). \ No newline at end of file diff --git a/Others/splitter/meta.yml b/Others/splitter/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..73107c6bb44f02d4a4b87b59eb3ee8c942a00a18 --- /dev/null +++ b/Others/splitter/meta.yml @@ -0,0 +1,2 @@ +1.0.1-oe2403sp2: + path: 1.0.1/24.03-lts-sp2/Dockerfile