Skip to content

Commit 0d88682

Browse files
authored
Merge pull request #1040 from cgwalters/curl-fail
build.sh: Use our embedded spec
2 parents bb51f57 + 8990b54 commit 0d88682

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

hack/Containerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
# https://tmt.readthedocs.io/en/stable/
88
ARG base=quay.io/centos-bootc/centos-bootc:stream9
99
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
1013
COPY hack/build.sh /build.sh
1114
RUN /build.sh && rm -v /build.sh
1215
COPY . /build

hack/build.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ case $ID in
55
centos|rhel) dnf config-manager --set-enabled crb;;
66
fedora) dnf -y install dnf-utils ;;
77
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
139
# Extra dependencies
1410
dnf -y install git-core

tests/containerfiles/lbi/Containerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
# https://tmt.readthedocs.io/en/stable/
88
ARG base=quay.io/centos-bootc/centos-bootc:stream9
99
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
1013
COPY hack/build.sh /build.sh
1114
RUN /build.sh && rm -v /build.sh
1215
COPY . /build

0 commit comments

Comments
 (0)