Skip to content

Commit a8bb8c1

Browse files
committed
build: Pre-download gflags source in Ubuntu container image
Pre-download the gflags v2.2.2 source tarball into the Docker image at /velox/deps-sources/gflags-v2.2.2.tar.gz. This allows CI jobs that use gflags_SOURCE=BUNDLED to point VELOX_GFLAGS_URL at the local copy instead of downloading from GitHub on every run.
1 parent 4d93698 commit a8bb8c1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/docker/ubuntu-22.04-cpp.dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,9 @@ RUN apt-get update && \
4747
apt-get update && apt-get install -y -q --no-install-recommends gh && \
4848
apt-get clean && rm -rf /var/lib/apt/lists/*
4949

50+
# Pre-download gflags source for BUNDLED builds to avoid downloading at build time.
51+
RUN mkdir -p /velox/deps-sources && \
52+
curl -fsSL -o /velox/deps-sources/gflags-v2.2.2.tar.gz \
53+
https://github.com/gflags/gflags/archive/refs/tags/v2.2.2.tar.gz
54+
5055
WORKDIR /velox

0 commit comments

Comments
 (0)