summaryrefslogtreecommitdiffstats
path: root/mkview/Dockerfile
blob: 0c8dc16603dfb714076d5f563e6dff73066e6df7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Generate repoview in repository tree
#
# Build:
#    podman build -t repoview .
#
# Usage:
#    podman run --mount type=bind,src=/home/rpmbuild/site/rpms,dst=/repo --rm -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 mkdir /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"]