Skip to content

Commit

Permalink
Add a Dockerfile for Ubuntu 17.04, for CI testing in Travis CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
poletti-marco committed Apr 15, 2017
1 parent ecb092b commit 0e7cb0e
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 6 deletions.
9 changes: 9 additions & 0 deletions extras/dockerfiles/Dockerfile.ubuntu-17.04
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ubuntu:17.04
MAINTAINER Marco Poletti <poletti.marco@gmail.com>

COPY ubuntu-17.04_custom.list /etc/apt/sources.list.d/
COPY common_install.sh common_cleanup.sh ubuntu-17.04_install.sh /

RUN bash -x /common_install.sh && \
bash -x /ubuntu-17.04_install.sh && \
bash -x /common_cleanup.sh
12 changes: 6 additions & 6 deletions extras/dockerfiles/common_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ apt-get install -y --no-install-recommends wget
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | apt-key add -

# 1E9377A2BA9EF27F is the key for the ubuntu-toolchain-r PPA.
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1E9377A2BA9EF27F
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1E9377A2BA9EF27F | cat

apt-get update -qq
apt-get install -y --no-install-recommends \
apt-get install -y --allow-unauthenticated --no-install-recommends \
file \
valgrind \
make \
Expand All @@ -20,16 +20,16 @@ apt-get install -y --no-install-recommends \
g++-4.8 \
g++-4.9 \
g++-5 \
clang-3.5 \
clang-3.6 \
clang-3.7 \
clang-3.8 \
clang-3.9 \
clang-4.0 \
libc++-dev \
python3-pytest \
python3-pip \
python3-setuptools

python3-setuptools \
dirmngr

pip3 install --upgrade pip
pip3 install wheel
pip3 install pytest-xdist
4 changes: 4 additions & 0 deletions extras/dockerfiles/ubuntu-14.04_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@

set -e

apt-get install -y --allow-unauthenticated --no-install-recommends \
clang-3.5 \
clang-3.6

# python3-sh doesn't exist in Ubuntu 14.04, we must install it via pip instead.
pip3 install --user sh
2 changes: 2 additions & 0 deletions extras/dockerfiles/ubuntu-16.04_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ apt-get install -y --no-install-recommends \
curl https://bazel.build/bazel-release.pub.gpg | apt-key add -

apt-get install -y --allow-unauthenticated --no-install-recommends \
clang-3.5 \
clang-3.6 \
g++-6 \
python \
python3-sh \
Expand Down
8 changes: 8 additions & 0 deletions extras/dockerfiles/ubuntu-17.04_custom.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu zesty main
deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu zesty main
deb http://apt.llvm.org/zesty/ llvm-toolchain-zesty main
deb-src http://apt.llvm.org/zesty/ llvm-toolchain-zesty main
deb http://apt.llvm.org/zesty/ llvm-toolchain-zesty-3.9 main
deb-src http://apt.llvm.org/zesty/ llvm-toolchain-zesty-3.9 main
deb http://apt.llvm.org/zesty/ llvm-toolchain-zesty-4.0 main
deb-src http://apt.llvm.org/zesty/ llvm-toolchain-zesty-4.0 main
10 changes: 10 additions & 0 deletions extras/dockerfiles/ubuntu-17.04_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

set -e

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1E9377A2BA9EF27F

apt-get install -y --allow-unauthenticated --no-install-recommends \
g++-6 \
python \
python3-sh

0 comments on commit 0e7cb0e

Please sign in to comment.