Commit Graph

11 Commits

Author SHA1 Message Date
Sun Yuechi
e25810d879 Dockerfile.build: install sccache from distro packages when available
Prefer the distro-packaged sccache (installed via dnf) over downloading a
release tarball with curl. Fall back to the curl download when the package
is absent or on non-dnf distros, so existing behavior is unchanged.

Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
2026-07-15 11:53:53 +08:00
Sun Yuechi
3a6a5b0c38 Dockerfile.build: fetch sccache on riscv64
sccache ships a riscv64 release artifact since v0.13.0, published under the
riscv64gc target triple. Map uname -m "riscv64" to that asset name so the
download resolves on riscv64 instead of being skipped.

Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
2026-06-06 17:56:45 +08:00
Sun Yuechi
7c9851d0a7 Dockerfile.build: bump sccache to v0.15.0
The releases since v0.8.2 add caching for C++20 modules, assembly, and C
preprocessor output, plus broader GCC/MSVC flag handling. They also avoid
double-caching when ccache is on PATH and carry assorted cache-correctness
and storage-backend fixes.

Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
2026-06-06 17:52:42 +08:00
Anshuman
5f102ea0ab run-make: Added flag for Dashboard and WError
Added flags to make Dashboard and WError optional. This
should not impact existing pipelines as these options are disabled only
when the flags are present.
Signed-off-by: Anshuman <anshuman@ibm.com>
2025-12-13 13:46:51 +05:30
John Mulligan
f798d6a48a Dockerfile.build: make FOR_MAKE_CHECK a build argument
Set it only during install time.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2025-10-13 18:07:45 -04:00
Zack Cerza
47565e9033 Dockerfile.build: Make sccache repo configurable
CEPH-BUILD-BRANCH: sccache-stats
DISTROS: centos9 noble
ARCHS: x86_64
FLAVORS: default
CI-CONTAINER: false
Signed-off-by: Zack Cerza <zack@cerza.org>
2025-10-06 19:28:37 -06:00
John Mulligan
8a9b6f8451 Dockerfile.build: improve docker compatibility
Try to fix:
```
Step 6/18 : COPY     ceph.spec.in     do_cmake.sh     install-deps.sh     run-make-check.sh     src/script/buildcontainer-setup.sh     ${CEPH_CTR_SRC}
When using COPY with more than one source file, the destination must be a directory and end with a /
```

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2025-10-02 13:57:27 -04:00
John Mulligan
9cbadc2e60 Dockerfile.build: make WITH_CRIMSON a build arg
We've chosen to enable crimson by default to match the CI, but that
is not always something a developer may want, so make WITH_CRIMSON
a build argument that can be toggled off if necessary.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2025-06-20 20:07:09 -04:00
Zack Cerza
a5a983c736 Dockerfile.build: Install sccache
Note that it is not used automatically.

Signed-off-by: Zack Cerza <zack@cerza.org>
2025-03-05 13:40:03 -07:00
John Mulligan
a1d49d557c src/script: rename CEPH_BRANCH to CEPH_BASE_BRANCH for build container
Previously, we were passing build argument of CEPH_BRANCH, but that was
a bit misleading as we expect the current branch to vary a bit (as users
will be using branches to develop and test the code). What we actually
care about is the base branch ('main', 'squid', etc) as that is fed into
our bootstrap script and we want the option to simple variations based
on the name of said base branch.
Rename CEPH_BRANCH to CEPH_BASE_BRANCH for clarity.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2025-02-28 15:16:35 -05:00
John Mulligan
bde72fc478 build: add files needed to create a build container
A build container contains all the tools and dependencies needed to
build ceph. It provides a Container file and small script that
helps bootstrap the container setup. This script installs a few extra
things we need before farming most of the work out to install-deps.sh.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2025-02-05 15:13:06 -05:00