summaryrefslogtreecommitdiffstats
path: root/mkview/Dockerfile
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-11-26 07:18:09 +0100
committerRemi Collet <remi@php.net>2021-11-26 07:18:09 +0100
commit825625314c5827dddee692d10b8b57e3c37eb087 (patch)
tree0fd1fa72b5630f4fa5dbc6f1ec5a159fc73c39d7 /mkview/Dockerfile
parent8e7fdf04ee490cd300ce94a6689b11a84dd91140 (diff)
switch to podman
Diffstat (limited to 'mkview/Dockerfile')
-rw-r--r--mkview/Dockerfile13
1 files changed, 7 insertions, 6 deletions
diff --git a/mkview/Dockerfile b/mkview/Dockerfile
index c26705b..3209f25 100644
--- a/mkview/Dockerfile
+++ b/mkview/Dockerfile
@@ -1,18 +1,19 @@
# Generate repoview in repository tree
#
# Build:
-# docker build -t repoview .
+# podman build -t repoview .
#
# Usage:
-# docker run --user remi --mount type=bind,src=/home/rpmbuild/site/rpms,dst=/repo -ti repoview
+# podman run --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 groupadd -g 1000 remi
+#RUN useradd -u 1000 -g 1000 remi
-RUN install -o remi -g remi -d /repo
+#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 && \
@@ -21,7 +22,7 @@ RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.n
COPY mkrepoview /tmp/mkrepoview
RUN install -Dpm 755 /tmp/mkrepoview /usr/bin/mkrepoview
-USER remi
+#USER remi
CMD ["mkrepoview"]