Skip to content

Instantly share code, notes, and snippets.

@koba-e964
Created September 24, 2018 11:02
Show Gist options
  • Save koba-e964/58e388a7736483c63edccaa23e267a21 to your computer and use it in GitHub Desktop.
Save koba-e964/58e388a7736483c63edccaa23e267a21 to your computer and use it in GitHub Desktop.
FROM ubuntu:trusty
MAINTAINER koba-e964-experimental
ENV UBUNTU_VER trusty
ENV LLVM_TOOLCHAIN_VER 6.0
RUN apt-get update && \
apt-get install -y software-properties-common && \
apt-add-repository -y "ppa:ubuntu-toolchain-r/test" && \
apt-get install -y wget && \
wget --no-check-certificate -O - https://apt.llvm.org/llvm-snapshot.gpg.key|apt-key add -
RUN echo deb http://apt.llvm.org/$UBUNTU_VER/ llvm-toolchain-$UBUNTU_VER-$LLVM_TOOLCHAIN_VER main >>/etc/apt/sources.list && \
echo deb-src http://apt.llvm.org/$UBUNTU_VER/ llvm-toolchain-$UBUNTU_VER-$LLVM_TOOLCHAIN_VER main >>/etc/apt/sources.list && \
apt-get update
RUN apt-get install -y clang-format-$LLVM_TOOLCHAIN_VER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment