File tree Expand file tree Collapse file tree 2 files changed +30
-40
lines changed Expand file tree Collapse file tree 2 files changed +30
-40
lines changed 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
1919# Install GPG key
2020RUN curl - sSf https ://xcp-ng.org/RPM-GPG-KEY-xcpng -o /etc/pki/rpm-gpg/RPM-GPG-KEY-xcpng
2121
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-
2922# 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 \
3431 gcc \
3532 gcc - c ++ \
3633 git \
@@ -41,16 +38,14 @@ RUN yum install -y \
4138 sudo \
4239 yum - utils \
4340 epel - release \
44- epel - rpm - macros
45-
46- # Niceties
47- RUN yum install - y \
41+ epel - rpm - macros \
42+ # Niceties
43+ && yum install - y \
4844 vim \
4945 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
5449
5550# OCaml in XS may be older than in CentOS
5651RUN 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/
1010RUN curl -sSf https:// xcp-ng.org/RPM-GPG-KEY-xcpng -o /etc/pki/rpm-gpg/RPM-GPG-KEY-xcpng
1111
1212# 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 \
1716 gcc \
1817 gcc-c++ \
1918 git \
@@ -23,28 +22,24 @@ RUN dnf install -y \
2322 python3-rpm \
2423 sudo \
2524 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 \
3028 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 \
3532 bash-completion \
3633 vim \
3734 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 \
4639 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
4843
4944# enable repositories commonly required to build
5045RUN dnf config-manager --enable crb
You can’t perform that action at this time.
0 commit comments