forked from rpm-software-management/ci-dnf-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.jjb
36 lines (32 loc) · 1.39 KB
/
Dockerfile.jjb
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
FROM fedora:24
ENV LANG C
COPY dnf-docker-test/repo /var/www/html/repo/
COPY dnf-docker-test/features /behave/
COPY rpms /rpms/
RUN echo $'\necho "deltarpm=0" >> /etc/dnf/dnf.conf' \
&& echo "deltarpm=0" >> /etc/dnf/dnf.conf \
&& echo "dnf -y update" \
&& dnf -y update \
# behave: core
# httpd: old-style repos
# six: py2/py3
# enum34: rpmdb State
# whichcraft: shutil.which() for py2
# jinja2: rpmspec template
&& echo "dnf -y install httpd python2-behave python2-six python-enum34 python2-whichcraft python-jinja2 python2-pexpect" \
&& dnf -y install httpd python2-behave python2-six python-enum34 python2-whichcraft python-jinja2 python2-pexpect \
# prevent installation of dnf-plugins-extras (versionlock, local, torproxy)
&& echo "rm /rpms/*extras-versionlock*.rpm /rpms/*extras-local*.rpm /rpms/*extras-torproxy*.rpm" \
&& rm /rpms/*extras-versionlock*.rpm /rpms/*extras-local*.rpm /rpms/*extras-torproxy*.rpm \
&& echo "dnf -y install /rpms/*.rpm" \
&& dnf -y install /rpms/*.rpm \
&& echo "dnf -y autoremove" \
&& dnf -y autoremove \
&& echo "dnf -y clean all" \
&& dnf -y clean all \
&& echo "mkdir /tmp/repos.d && mv /etc/yum.repos.d/* /tmp/repos.d/" \
&& mkdir /tmp/repos.d && mv /etc/yum.repos.d/* /tmp/repos.d/ \
&& echo "mkdir /repo" \
&& mkdir /repo
ADD dnf-docker-test/launch-test /usr/bin/
VOLUME ["/junit"]