Files
swift-nio/Dockerfile
T
Tom Doron a6bae8b759 linux support
motivation: be able to build and test on linux

changes:
* add dockerfile to create docker image running all toold required for testing on linux
* add readme with instruction on how to use the docker setup
* add script to generate linux tests mapping
* add .swift_version file to explicitly call out the swift version needed to build the project
* adjust code that did not build on linux, mainly casting between Int32 and Int
2017-06-21 10:58:28 -07:00

21 lines
702 B
Docker

FROM ubuntu:14.04
MAINTAINER tomerd@apple.com
ENTRYPOINT /bin/bash
RUN apt-get -y update
# install dependencies
RUN apt-get -y install curl git libicu-dev clang-3.8 libpython2.7-dev libxml2
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.8 100
RUN update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.8 100
# install swiftenv
RUN git clone https://github.com/kylef/swiftenv.git ~/.swiftenv
RUN echo 'export SWIFTENV_ROOT="$HOME/.swiftenv"' >> ~/.bashrc
RUN echo 'export PATH="$SWIFTENV_ROOT/bin:$PATH"' >> ~/.bashrc
RUN echo 'eval "$(swiftenv init -)"' >> ~/.bashrc
# install swift
ARG version
RUN $HOME/.swiftenv/bin/swiftenv install ${version:-3.0.1}