forked from oVirt/buildcontainer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.stream8
57 lines (49 loc) · 1.37 KB
/
Dockerfile.stream8
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM quay.io/centos/centos:stream8
# Install DNF core plugins
RUN dnf install -y dnf-plugins-core
# Install oVirt repositories
RUN dnf copr enable -y ovirt/ovirt-master-snapshot centos-stream-8 \
&& dnf install -y ovirt-release-master
# Configure CS8 modules
RUN dnf module enable -y \
pki-deps \
javapackages-tools \
maven:3.6 \
nodejs:14
# Add "build" user for optional non-root builds
# Install required packages and the GitHub CLI tool so actions can use it when running in the container
RUN \
useradd build \
&& dnf -y config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo \
&& dnf -y install \
gh \
createrepo_c \
dnf-utils \
&& dnf clean all
COPY containerroot /
WORKDIR /tmp/src-rpm
# Download source rpms and install it's dependencies
RUN reposync --repoid=copr:copr.fedorainfracloud.org:ovirt:ovirt-master-snapshot --source --newest-only \
&& \
find . -iname '*.src.rpm' -exec mv {} . \; \
&& \
dnf builddep -y *.src.rpm \
&& \
rm -rf *
WORKDIR /
# Install missing dependencies for oVirt appliance and node
RUN dnf install -y \
asciidoc \
libvirt \
libguestfs-tools\
lorax \
pykickstart \
python3-jinja2 \
python3-pyyaml \
virt-install \
python3-sh \
oz \
imagefactory \
imagefactory-plugins-ovfcommon \
&& \
dnf clean all