├── Dockerfile ├── LICENSE └── README.md /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:14.04 2 | MAINTAINER Oliver Letterer, oliver.letterer@sparrow-labs.de 3 | 4 | ENV SWIFT_VERSION 2.2-SNAPSHOT-2015-12-01-b 5 | ENV SWIFT_PLATFORM ubuntu14.04 6 | 7 | RUN apt-get update && \ 8 | apt-get -y upgrade && \ 9 | apt-get install -y build-essential wget clang libedit-dev python2.7 python2.7-dev libicu52 && \ 10 | rm -rf /var/lib/apt/lists/* 11 | 12 | RUN wget -q -O - https://swift.org/keys/all-keys.asc | gpg --import - 13 | RUN gpg --keyserver hkp://pool.sks-keyservers.net --refresh-keys Swift 14 | 15 | RUN wget https://swift.org/builds/ubuntu1404/swift-$SWIFT_VERSION/swift-$SWIFT_VERSION-$SWIFT_PLATFORM.tar.gz && \ 16 | wget https://swift.org/builds/ubuntu1404/swift-$SWIFT_VERSION/swift-$SWIFT_VERSION-$SWIFT_PLATFORM.tar.gz.sig && \ 17 | gpg --verify swift-$SWIFT_VERSION-$SWIFT_PLATFORM.tar.gz.sig && \ 18 | tar xzf swift-$SWIFT_VERSION-$SWIFT_PLATFORM.tar.gz && \ 19 | rm swift-$SWIFT_VERSION-$SWIFT_PLATFORM.tar.gz swift-$SWIFT_VERSION-$SWIFT_PLATFORM.tar.gz.sig 20 | 21 | ENV PATH /swift-$SWIFT_VERSION-$SWIFT_PLATFORM/usr/bin:"${PATH}" 22 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Oliver Letterer 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # swift-docker 2 | ubuntu:14.04 with Apple swift 3 | 4 | ## Quick start on OS X 5 | 6 | ```bash 7 | brew install docker docker-machine 8 | docker-machine create -d virtualbox dev 9 | docker-machine start dev 10 | eval "$(docker-machine env dev)" 11 | ``` 12 | 13 | ## Usage 14 | 15 | ```bash 16 | docker run -it letterer/swift-docker swift --version 17 | > Swift version 2.2-dev (LLVM 46be9ff861, Clang 4deb154edc, Swift 778f82939c) 18 | ``` 19 | --------------------------------------------------------------------------------