File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 7
7
# https://tmt.readthedocs.io/en/stable/
8
8
ARG base=quay.io/centos-bootc/centos-bootc:stream9
9
9
FROM $base as build
10
+ # Keep this stuff before the `COPY . /build` below to ensure that the packages
11
+ # are cached, i.e. we don't invalidate the package install stage by editing the source.
12
+ COPY contrib /contrib
10
13
COPY hack/build.sh /build.sh
11
14
RUN /build.sh && rm -v /build.sh
12
15
COPY . /build
Original file line number Diff line number Diff line change @@ -5,10 +5,6 @@ case $ID in
5
5
centos|rhel) dnf config-manager --set-enabled crb;;
6
6
fedora) dnf -y install dnf-utils ;;
7
7
esac
8
- # Fetch the latest spec from fedora to ensure we've got the latest build deps
9
- t=$( mktemp --suffix .spec)
10
- curl -L -o ${t} https://src.fedoraproject.org/rpms/bootc/raw/rawhide/f/bootc.spec
11
- dnf -y builddep " ${t} "
12
- rm -f " ${t} "
8
+ dnf -y builddep ./contrib/packaging/bootc.spec
13
9
# Extra dependencies
14
10
dnf -y install git-core
Original file line number Diff line number Diff line change 7
7
# https://tmt.readthedocs.io/en/stable/
8
8
ARG base=quay.io/centos-bootc/centos-bootc:stream9
9
9
FROM $base as build
10
+ # Keep this stuff before the `COPY . /build` below to ensure that the packages
11
+ # are cached, i.e. we don't invalidate the package install stage by editing the source.
12
+ COPY contrib /contrib
10
13
COPY hack/build.sh /build.sh
11
14
RUN /build.sh && rm -v /build.sh
12
15
COPY . /build
You can’t perform that action at this time.
0 commit comments