File tree Expand file tree Collapse file tree 3 files changed +43
-58
lines changed Expand file tree Collapse file tree 3 files changed +43
-58
lines changed Original file line number Diff line number Diff line change @@ -16,17 +16,14 @@ ARG XCP_NG_BRANCH=7.6
16
16
COPY files /xcp - ng .repo .7. x .in /etc /yum .repos .d /xcp - ng .repo
17
17
RUN sed - i - e "s/@XCP_NG_BRANCH@/${XCP_NG_BRANCH}/g" /etc /yum .repos .d /xcp - ng .repo
18
18
19
- # Fix invalid rpmdb checksum error with overlayfs, see https://github.com/docker/docker/issues/10180
20
- RUN yum install - y yum - plugin - ovl
21
-
22
- # Use priorities so that packages from our repositories are preferred over those from CentOS repositories
23
- RUN yum install - y yum - plugin - priorities
24
-
25
19
# Update
26
- RUN yum update - y
27
-
28
- # Build requirements
29
- RUN yum install - y -- exclude = gcc - xs \
20
+ RUN yum update - y \
21
+ # Fix invalid rpmdb checksum error with overlayfs, see https://github.com/docker/docker/issues/10180
22
+ & & yum install - y yum - plugin - ovl \
23
+ # Use priorities so that packages from our repositories are preferred over those from CentOS repositories
24
+ & & yum install - y yum - plugin - priorities \
25
+ # Build requirements
26
+ & & yum install - y -- exclude = gcc - xs \
30
27
gcc \
31
28
gcc - c ++ \
32
29
git \
@@ -38,16 +35,14 @@ RUN yum install -y --exclude=gcc-xs \
38
35
rpm - python \
39
36
sudo \
40
37
yum - utils \
41
- epel - release
42
-
43
- # Niceties
44
- RUN yum install - y \
38
+ epel - release \
39
+ # Niceties
40
+ && yum install - y \
45
41
vim \
46
42
wget \
47
- which
48
-
49
- # clean package cache to avoid download errors
50
- RUN yum clean all
43
+ which \
44
+ # clean package cache to avoid download errors
45
+ & & yum clean all
51
46
52
47
# OCaml in XS is slightly older than in CentOS
53
48
RUN sed - i "/gpgkey/a exclude=ocaml*" /etc /yum .repos .d /Cent * /etc /yum .repos .d /epel *
Original file line number Diff line number Diff line change @@ -19,18 +19,15 @@ RUN sed -i -e "s/@XCP_NG_BRANCH@/${XCP_NG_BRANCH}/g" /etc/yum.repos.d/xcp-ng
19
19
# Install GPG key
20
20
RUN curl - sSf https ://xcp-ng.org/RPM-GPG-KEY-xcpng -o /etc/pki/rpm-gpg/RPM-GPG-KEY-xcpng
21
21
22
- # Fix invalid rpmdb checksum error with overlayfs, see https://github.com/docker/docker/issues/10180
23
- # (still needed ?)
24
- RUN yum install - y yum - plugin - ovl
25
-
26
- # Use priorities so that packages from our repositories are preferred over those from CentOS repositories
27
- RUN yum install - y yum - plugin - priorities
28
-
29
22
# Update
30
- RUN yum update - y
31
-
32
- # Common build requirements
33
- RUN yum install - y \
23
+ RUN yum update - y \
24
+ # Fix invalid rpmdb checksum error with overlayfs, see https://github.com/docker/docker/issues/10180
25
+ # (still needed ?)
26
+ && yum install - y yum - plugin - ovl \
27
+ # Use priorities so that packages from our repositories are preferred over those from CentOS repositories
28
+ & & yum install - y yum - plugin - priorities \
29
+ # Common build requirements
30
+ & & yum install - y \
34
31
gcc \
35
32
gcc - c ++ \
36
33
git \
@@ -41,16 +38,14 @@ RUN yum install -y \
41
38
sudo \
42
39
yum - utils \
43
40
epel - release \
44
- epel - rpm - macros
45
-
46
- # Niceties
47
- RUN yum install - y \
41
+ epel - rpm - macros \
42
+ # Niceties
43
+ && yum install - y \
48
44
vim \
49
45
wget \
50
- which
51
-
52
- # clean package cache to avoid download errors
53
- RUN yum clean all
46
+ which \
47
+ # clean package cache to avoid download errors
48
+ & & yum clean all
54
49
55
50
# OCaml in XS may be older than in CentOS
56
51
RUN sed - i "/gpgkey/a exclude=ocaml*" /etc /yum .repos .d /Cent * /etc /yum .repos .d /epel *
Original file line number Diff line number Diff line change @@ -10,10 +10,9 @@ COPY files/Alma10-devel.repo /etc/yum.repos.d/
10
10
RUN curl -sSf https:// xcp-ng.org/RPM-GPG-KEY-xcpng -o /etc/pki/rpm-gpg/RPM-GPG-KEY-xcpng
11
11
12
12
# Update
13
- RUN dnf update -y
14
-
15
- # Common build requirements
16
- RUN dnf install -y \
13
+ RUN dnf update -y \
14
+ # Common build requirements
15
+ && dnf install -y \
17
16
gcc \
18
17
gcc-c++ \
19
18
git \
@@ -23,28 +22,24 @@ RUN dnf install -y \
23
22
python3-rpm \
24
23
sudo \
25
24
dnf-plugins-core \
26
- epel-release
27
-
28
- # EPEL: needs epel-release installed first
29
- RUN dnf install -y \
25
+ epel-release \
26
+ # EPEL: needs epel-release installed first
27
+ && dnf install -y \
30
28
epel-rpm-macros \
31
- almalinux-git-utils
32
-
33
- # Niceties
34
- RUN dnf install -y \
29
+ almalinux-git-utils \
30
+ # Niceties
31
+ && dnf install -y \
35
32
bash-completion \
36
33
vim \
37
34
wget \
38
- which
39
-
40
- # clean package cache to avoid download errors
41
- RUN yum clean all
42
-
43
- # -release*, to be commented out to boostrap the build-env until it gets built
44
- # FIXME: isn' t it already pulled as almalinux-release when available?
45
- RUN dnf install -y \
35
+ which \
36
+ # -release*, to be commented out to boostrap the build-env until it gets built
37
+ # FIXME: isn' t it already pulled as almalinux-release when available?
38
+ && dnf install -y \
46
39
xcp-ng-release \
47
- xcp-ng-release-presets
40
+ xcp-ng-release-presets \
41
+ # clean package cache to avoid download errors
42
+ && yum clean all
48
43
49
44
# enable repositories commonly required to build
50
45
RUN dnf config-manager --enable crb
You can’t perform that action at this time.
0 commit comments