From f76ee6d7824b9604c450ced458aaf674110d6149 Mon Sep 17 00:00:00 2001 From: Kyle Fuller Date: Wed, 20 Feb 2019 16:53:27 +0000 Subject: [PATCH] feat: add clang 7 --- clang/7/Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 clang/7/Dockerfile diff --git a/clang/7/Dockerfile b/clang/7/Dockerfile new file mode 100644 index 0000000..2331a81 --- /dev/null +++ b/clang/7/Dockerfile @@ -0,0 +1,18 @@ +FROM ubuntu:18.04 + +ENV CLANG_VERSION=7.0.1 + +RUN apt-get update && \ + apt-get install -y curl xz-utils python build-essential && \ + curl -sL -o /tmp/clang-$CLANG_VERSION.tar.xz.sig http://releases.llvm.org/$CLANG_VERSION/clang+llvm-$CLANG_VERSION-x86_64-linux-gnu-ubuntu-18.04.tar.xz.sig && \ + curl -sL -o /tmp/clang-$CLANG_VERSION.tar.xz http://releases.llvm.org/$CLANG_VERSION/clang+llvm-$CLANG_VERSION-x86_64-linux-gnu-ubuntu-18.04.tar.xz && \ + gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 474E22316ABF4785A88C6E8EA2C794A986419D8A && \ + gpg --verify /tmp/clang-$CLANG_VERSION.tar.xz.sig && \ + tar xvf /tmp/clang-$CLANG_VERSION.tar.xz -C /opt && \ + rm -fr /tmp/* + +ENV CC=clang +ENV CXX=clang++ +ENV PATH="/opt/clang+llvm-$CLANG_VERSION-x86_64-linux-gnu-ubuntu-18.04/bin:${PATH}" + +CMD bash