Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Commit e0da2f8

Browse files
deansheatherNathan Potter
authored and
Nathan Potter
committed
ubuntu-dev-llvm8 image Dockerfile (#213)
1 parent 1304386 commit e0da2f8

File tree

4 files changed

+58
-3
lines changed

4 files changed

+58
-3
lines changed

images/main.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ set -eu
44
BASE_IMAGE=ubuntu-dev
55

66
LANG_IMAGES=(
7+
ubuntu-dev-gcc8
78
ubuntu-dev-go
9+
ubuntu-dev-llvm8
10+
ubuntu-dev-node12
11+
ubuntu-dev-openjdk12
812
ubuntu-dev-python2.7
913
ubuntu-dev-python3.7
1014
ubuntu-dev-ruby2.6
11-
ubuntu-dev-gcc8
12-
ubuntu-dev-node12
13-
ubuntu-dev-openjdk12
1415
)
1516

1617
# Build the base for all images.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Based Upon:
2+
# https://github.com/d11wtq/llvm-docker
3+
#
4+
# Modifications:
5+
#
6+
# - Use LLVM 8 instead of LLVM 3.9.
7+
# - Change the signing key URL.
8+
# - Merge `apt-get install` steps into the prior `apt-get update` step.
9+
# - Check for file already existing when creating symlinks.
10+
11+
FROM %BASE
12+
13+
RUN apt-get update -qq -y && \
14+
apt-get install -qq -y wget
15+
16+
# Ubuntu Cosmic LLVM APT repository: http://apt.llvm.org
17+
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
18+
ADD llvm-8.list /etc/apt/sources.list.d/llvm-8.list
19+
20+
RUN apt-get update -qq -y && \
21+
apt-get install -qq -y \
22+
make \
23+
clang-8 \
24+
clang-8-doc \
25+
clang-format-8 \
26+
clang-tools-8 \
27+
libc++-8-dev \
28+
libc++abi-8-dev \
29+
libclang-8-dev \
30+
libclang-common-8-dev \
31+
libclang1-8 \
32+
libfuzzer-8-dev \
33+
libllvm-8-ocaml-dev \
34+
libllvm8 \
35+
libomp-8-dev \
36+
lld-8 \
37+
lldb-8 \
38+
llvm-8 \
39+
llvm-8-dev \
40+
llvm-8-doc \
41+
llvm-8-examples \
42+
llvm-8-runtime \
43+
llvm-8-tools \
44+
python-clang-8
45+
46+
RUN for f in $(find /usr/bin -name '*-8'); do \
47+
newname=`echo $f | sed s/-8//`; \
48+
[ ! -f $newname ] && ln -s $f $newname || true; \
49+
done
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM %BASE
2+
3+
RUN installext ms-vscode.cpptools

images/ubuntu-dev-llvm8/llvm-8.list

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
deb http://apt.llvm.org/cosmic/ llvm-toolchain-cosmic-8 main
2+
deb-src http://apt.llvm.org/cosmic/ llvm-toolchain-cosmic-8 main

0 commit comments

Comments
 (0)