Skip to content

Commit e1080ba

Browse files
committed
First commit
0 parents  commit e1080ba

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

Dockerfile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
FROM phusion/baseimage:0.9.17
3+
MAINTAINER Haris Amin <aminharis7@gmail.com>
4+
5+
# Use baseimage-docker's init system.
6+
CMD ["/sbin/my_init"]
7+
8+
RUN apt-get update && apt-get upgrade -y && apt-get install -y curl wget git make
9+
10+
# Ubuntu Swift Requirements: https://github.com/apple/swift#system-requirements
11+
RUN sudo apt-get install -y git cmake ninja-build clang uuid-dev libicu-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev pkg-config
12+
RUN sudo apt-get install -y clang-3.6
13+
RUN sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.6 100
14+
RUN sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.6 100
15+
16+
# Download Swift Ubuntu 14.04 Snapshot
17+
RUN wget https://swift.org/builds/ubuntu1404/swift-2.2-SNAPSHOT-2015-12-01-b/swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04.tar.gz
18+
19+
RUN tar -xvzf swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04.tar.gz && cd swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04
20+
21+
# Move extracted Swift Snapshot
22+
RUN rsync -a -v --ignore-existing . /usr
23+
24+
# Clean up
25+
RUN cd / && rm -rf swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04*
26+
27+
# Clean up APT when done.
28+
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
29+
30+
# Set Swfit Path
31+
ENV PATH /usr/bin:$PATH
32+
33+
# Print Installed Swift Version
34+
RUN swift --version

Readme.md

Whitespace-only changes.

0 commit comments

Comments
 (0)