diff options
author | Remi Collet <remi@remirepo.net> | 2020-12-02 10:13:37 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-12-02 10:13:37 +0100 |
commit | 2eee76d53feb6c806049e824c71b625ac47e489a (patch) | |
tree | ad8e6e30157deba14e8fa92aa5c0487095ba3dea /mkview/Dockerfile | |
parent | b35abd6303fbee73d1b0075c9c505e22966ec118 (diff) |
add 'mkview' image to run 'repoview' on the repository
Diffstat (limited to 'mkview/Dockerfile')
-rw-r--r-- | mkview/Dockerfile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mkview/Dockerfile b/mkview/Dockerfile new file mode 100644 index 0000000..c26705b --- /dev/null +++ b/mkview/Dockerfile @@ -0,0 +1,28 @@ +# Generate repoview in repository tree +# +# Build: +# docker build -t repoview . +# +# Usage: +# docker run --user remi --mount type=bind,src=/home/rpmbuild/site/rpms,dst=/repo -ti repoview +# + +FROM registry.access.redhat.com/ubi7:latest + +RUN groupadd -g 1000 remi +RUN useradd -u 1000 -g 1000 remi + +RUN install -o remi -g remi -d /repo + +RUN rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7 +RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \ + yum install -y repoview + +COPY mkrepoview /tmp/mkrepoview +RUN install -Dpm 755 /tmp/mkrepoview /usr/bin/mkrepoview + +USER remi + +CMD ["mkrepoview"] + + |