Public Repository

Last pushed: a year ago
Short Description
Docker image containing swiftenv
Full Description

Building a docker image using swiftenv

You may base your own Docker image from the swiftenv image, you may then install any Swift version you desire.

FROM kylef/swiftenv
RUN swiftenv install 3.0

Running the swiftenv image directly

You may pull down the image and use it directly:

$ docker pull kylef/swiftenv
$ docker run -i -t --entrypoint /bin/sh kylef/swiftenv
# swiftenv --version
swiftenv 1.2.0

Source Dockerfile

FROM ubuntu:15.10
MAINTAINER Kyle Fuller <kyle@fuller.li>

RUN apt-get -qq update

# Install swift run-time and build dependencies
RUN apt-get -qq -y install lsb-release curl git cmake ninja-build clang python uuid-dev libicu-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev pkg-config

# Install swiftenv
ENV SWIFTENV_ROOT /usr/local
ADD https://github.com/kylef/swiftenv/archive/1.2.0.tar.gz /tmp/swiftenv.tar.gz
RUN tar -xzf /tmp/swiftenv.tar.gz -C /usr/local/ --strip 1

# Add swiftenv shims to PATH
ENV PATH /usr/local/shims:$PATH
Docker Pull Command
Owner
kylef