-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (28 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Run TraceLogAdaptiveWriterTests in a container
FROM solita/ubuntu-systemd:xenial
LABEL maintainer="Tony Stone <http://github.com/tonystone>"
# Install Dependencies
RUN apt-get update && apt-get install -y \
clang-3.8 \
lldb-3.8 \
libcurl3 \
libicu-dev \
libxml2 \
libpython2.7-dev \
libsystemd-dev \
curl \
git
# Fix clang links on Ubuntu 16.04
RUN ln -s /usr/bin/clang-3.8 /usr/bin/clang && ln -s /usr/bin/clang++-3.8 /usr/bin/clang++
ENV WORKDIR /workdir
RUN mkdir ${WORKDIR}
WORKDIR ${WORKDIR}
# Install Swift
RUN curl -O https://swift.org/builds/swift-5.1-release/ubuntu1604/swift-5.1-RELEASE/swift-5.1-RELEASE-ubuntu16.04.tar.gz \
&& tar xzvf swift-5.1-RELEASE-ubuntu16.04.tar.gz
ENV PATH ${WORKDIR}/swift-5.1-RELEASE-ubuntu16.04/usr/bin:$PATH
ENV C_INCLUDE_PATH ${WORKDIR}/swift-5.1-RELEASE-ubuntu16.04/usr/lib/swift/clang/include/
ENV CPLUS_INCLUDE_PATH $C_INCLUDE_PATH
COPY Package.swift ${WORKDIR}/Package.swift
COPY Sources ${WORKDIR}/Sources
COPY Tests ${WORKDIR}/Tests