Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Add clang 7 #178

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions clang/7/Dockerfile
Original file line number Diff line number Diff line change
@@ -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