-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: faster builds by copying @corneliusroemer image caching for our…
… dependency images, which rarely change
- Loading branch information
Showing
5 changed files
with
186 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM alpine:3.18 | ||
|
||
ARG TARGETPLATFORM | ||
|
||
RUN apk update && apk add --no-cache py3-pip \ | ||
build-base=0.5-r3 \ | ||
cmake=3.26.5-r0 \ | ||
bash=5.2.15-r5 \ | ||
linux-headers=6.3-r0 \ | ||
boost-build=1.82.0-r0 \ | ||
libtbb=2021.9.0-r0 | ||
|
||
RUN pip install conan==2.0.17 | ||
|
||
WORKDIR /src | ||
COPY conanfile.py conanprofile.docker conanprofile.docker_arm ./ | ||
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then \ | ||
mv conanprofile.docker_arm conanprofile; \ | ||
else \ | ||
mv conanprofile.docker conanprofile; \ | ||
fi | ||
|
||
RUN conan install . --build=missing --profile ./conanprofile --profile:build ./conanprofile --output-folder=build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM ubuntu:22.04 | ||
|
||
WORKDIR /src | ||
|
||
RUN apt update \ | ||
&& apt install -y \ | ||
cmake=3.22.1-1ubuntu1.22.04.2 \ | ||
python3-pip=22.0.2+dfsg-1ubuntu0.4 \ | ||
software-properties-common=0.99.22.9 \ | ||
wget=1.21.2-2ubuntu1 \ | ||
gnupg=2.2.27-3ubuntu2.1 \ | ||
lsb-release=11.1.0ubuntu4 \ | ||
&& wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc \ | ||
&& add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main' \ | ||
&& apt install -y clang-tidy-19 | ||
|
||
RUN pip install conan==2.0.17 | ||
|
||
COPY conanfile.py conanprofile.docker ./ | ||
RUN mv conanprofile.docker conanprofile | ||
|
||
RUN conan install . --build=missing --profile ./conanprofile --profile:build ./conanprofile --output-folder=build -s build_type=Debug |