|
22 | 22 | # If you're only looking to run the Docker image locally for debugging a
|
23 | 23 | # build bot, see the `run-buildbot-container` script located in this directory.
|
24 | 24 | #
|
25 |
| -# A pre-built version of this image is maintained on DockerHub as ldionne/libcxx-builder. |
26 |
| -# To update the image, rebuild it and push it to ldionne/libcxx-builder (which |
27 |
| -# will obviously only work if you have permission to do so). |
| 25 | +# A pre-built version of this image is maintained on Github under the libc++ organization, as ghcr.io/libcxx/libcxx-builder. |
| 26 | +# To update the image, rebuild it and push it to github (all members of the libc++ organization should be able to do this). |
28 | 27 | #
|
29 |
| -# $ docker build -t ldionne/libcxx-builder libcxx/utils/ci |
30 |
| -# $ docker push ldionne/libcxx-builder |
| 28 | +# $ docker compose build |
| 29 | +# $ docker compose push |
31 | 30 | #
|
32 | 31 |
|
33 | 32 | FROM ubuntu:jammy
|
@@ -66,8 +65,8 @@ RUN locale-gen
|
66 | 65 | # LLVM 15, we still need to have Clang 12 in this Docker image because the LLVM
|
67 | 66 | # 14 release branch CI uses it. The tip-of-trunk CI will never use Clang 12,
|
68 | 67 | # though.
|
69 |
| -# LLVM POST-BRANCH bump version |
70 |
| -ENV LLVM_HEAD_VERSION=18 |
| 68 | +ARG LLVM_HEAD_VERSION # populated in the docker-compose file |
| 69 | +ENV LLVM_HEAD_VERSION=${LLVM_HEAD_VERSION} |
71 | 70 | RUN apt-get update && apt-get install -y lsb-release wget software-properties-common
|
72 | 71 | RUN wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh
|
73 | 72 | RUN bash /tmp/llvm.sh $(($LLVM_HEAD_VERSION - 3)) # for CI transitions
|
@@ -97,8 +96,9 @@ RUN apt-get update && apt-get install -y llvm-$(($LLVM_HEAD_VERSION - 2))-dev ll
|
97 | 96 | libomp5-$LLVM_HEAD_VERSION
|
98 | 97 |
|
99 | 98 | # Install the most recent GCC, like clang install the previous version as a transition.
|
100 |
| -ENV GCC_LATEST_VERSION=13 |
101 | 99 | RUN add-apt-repository ppa:ubuntu-toolchain-r/test
|
| 100 | +ARG GCC_LATEST_VERSION # populated in the docker-compose file |
| 101 | +ENV GCC_LATEST_VERSION=${GCC_LATEST_VERSION} |
102 | 102 | RUN apt-get update && apt install -y gcc-$((GCC_LATEST_VERSION - 1)) g++-$((GCC_LATEST_VERSION - 1))
|
103 | 103 | RUN apt-get update && apt install -y gcc-$GCC_LATEST_VERSION g++-$GCC_LATEST_VERSION
|
104 | 104 |
|
@@ -136,4 +136,4 @@ ENV PATH="${PATH}:/home/libcxx-builder/.buildkite-agent/bin"
|
136 | 136 | RUN echo "tags=\"queue=libcxx-builders,arch=$(uname -m),os=linux\"" >> "/home/libcxx-builder/.buildkite-agent/buildkite-agent.cfg"
|
137 | 137 |
|
138 | 138 | # By default, start the Buildkite agent (this requires a token).
|
139 |
| -CMD buildkite-agent start |
| 139 | +CMD ["buildkite-agent", "start"] |
0 commit comments