forked from redhat-aqe/review-rot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (35 loc) · 1.12 KB
/
Dockerfile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM registry.access.redhat.com/ubi8/ubi-minimal
MAINTAINER Pavlina Bortlova <pbortlov@redhat.com>
LABEL \
description="Review-rot - gather information about opened merge or pull requests" \
summary="review-rot git gitlab github pagure gerrit" \
vendor="EXD Process-tools guild <exd-guild-process-tools@redhat.com>"
USER root
RUN microdnf update \
&& microdnf install \
gcc \
git \
libyaml-devel \
python3-devel \
python3-pip \
python3-setuptools \
&& microdnf clean all
# copy workdir for installation of review-rot
COPY . /reviewrot
# install review-rot
RUN cd /reviewrot \
&& pip3 install --upgrade pip setuptools \
&& python3 setup.py install
# clean up and remove no longer needed dependencies for building Python
# packages
RUN rm -r /reviewrot \
&& microdnf remove \
gcc \
libyaml-devel \
python3-devel \
&& microdnf clean all
# create direcory for the run of review-rot,
# set privileges and env variable
RUN mkdir -p /.cache/Python-Eggs \
&& chmod g+rw /.cache/Python-Eggs
ENV PYTHON_EGG_CACHE=/.cache/Python-Eggs