github.com/ungtb10d/cli/v2@v2.0.0-20221110210412-98537dd9d6a1/script/createrepo.sh (about) 1 #!/bin/bash 2 set -e 3 mkdir createrepo 4 cat > createrepo/Dockerfile << EOF 5 FROM fedora:32 6 RUN yum install -y createrepo_c 7 ENTRYPOINT ["createrepo", "/packages"] 8 EOF 9 10 docker build -t createrepo createrepo/ 11 docker run --rm --volume "$PWD/dist":/packages createrepo 12 rm -rf createrepo