On Tue, Jan 19, 2021 at 04:14:32PM +0800, Bai Jing wrote:
[why] The source file is missing in the openEuler image, So we need to add source files for it.
Signed-off-by: Bai Jing 799286817@qq.com
pkg/openeuler_docker/PKGBUILD | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkg/openeuler_docker/PKGBUILD
diff --git a/pkg/openeuler_docker/PKGBUILD b/pkg/openeuler_docker/PKGBUILD new file mode 100644 index 000000000..8076350a9 --- /dev/null +++ b/pkg/openeuler_docker/PKGBUILD @@ -0,0 +1,28 @@ +pkgname=openeuler_docker +pkgver=1.0 +pkgrel=1 +pkgdesc="openeuler docker image" +arch=('i386' 'x86_64') +url="https://repo.openeuler.org/openEuler-20.03-LTS/docker_img"
add makedepends field, perhaps refer to docker.
+license=('GPL') +source=("https://repo.openeuler.org/openEuler-20.03-LTS/docker_img/aarch64/openEuler-...") +md5sums=('6aa300910c9f9040b725939fb80e8121')
+handle_docker_image() {
- docker load < openEuler-docker.aarch64.tar.xz
- docker run -d --name my-openeuler openeuler-20.03-lts:latest
- container_id=$(docker ps -a | grep my-openeuler | awk -F ' ' '{print $1}')
- docker cp /etc/yum.repos.d/openEuler.repo $container_id:/etc/yum.repos.d/
- docker commit $container_id openeuler-20.03-lts:v1
- docker save -o openeuler-20.03-lts-v1.tar openeuler-20.03-lts:v1
- docker stop $container_id && docker rm $container_id
+}
+build() {
- handle_docker_image
perhaps no need to define the function, move func content to here. Thanks, Liushaofei
+}
+package() {
- mkdir -p "$pkgdir/lkp/benchmarks/${pkgname}"
- cp "$srcdir/openeuler-20.03-lts-v1.tar" "$pkgdir/lkp/benchmarks/${pkgname}"
+}
2.23.0