-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d18d63f
commit 87ba723
Showing
12 changed files
with
91 additions
and
25 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
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
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
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 |
---|---|---|
@@ -1,12 +1,34 @@ | ||
# See doc/docker.rst. | ||
|
||
# TODO(#12): Upgrade to Ubuntu 22.04 (jammy), Clang 15, LLVM 15 | ||
ARG UBUNTU_NAME=focal | ||
ARG UBUNTU_VERSION=20.04 | ||
ARG UBUNTU_NAME=jammy | ||
ARG UBUNTU_VERSION=22.04 | ||
FROM ubuntu:$UBUNTU_VERSION as dist | ||
# See the documentation for supported versions. | ||
# | ||
# See NOTE[Clang+LLVM] in ci.yml. | ||
# | ||
# TODO(#12, #113): Upgrade to Clang 15, LLVM 15. | ||
ARG CLANG_VERSION=14 | ||
ARG LLVM_MAJOR_VERSION=14 | ||
# | ||
# https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact | ||
ARG UBUNTU_NAME | ||
ARG UBUNTU_VERSION | ||
SHELL ["/bin/bash", "-c", "-o", "pipefail"] | ||
COPY ./build/cclyzer++*.deb /tmp/cclyzer++.deb | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
COPY ./build/cclyzer++*.deb /tmp/cclyzer++.deb | ||
RUN apt-get update -qq && \ | ||
apt install -y --no-install-recommends ca-certificates gnupg wget && \ | ||
wget --no-verbose -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \ | ||
if [[ ${LLVM_MAJOR_VERSION} -lt 13 ]]; then \ | ||
echo "deb http://apt.llvm.org/${UBUNTU_NAME}/ llvm-toolchain-${UBUNTU_NAME} main" | tee /etc/apt/sources.list.d/llvm.list; \ | ||
else \ | ||
echo "deb http://apt.llvm.org/${UBUNTU_NAME}/ llvm-toolchain-${UBUNTU_NAME}-${LLVM_MAJOR_VERSION} main" | tee /etc/apt/sources.list.d/llvm.list; \ | ||
fi && \ | ||
apt-get update -qq && \ | ||
apt install -y /tmp/cclyzer++.deb && \ | ||
apt-get remove -y gnupg wget && \ | ||
apt-get -y autoremove && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
rm -f /tmp/cclyzer++.deb |
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