Skip to content

Commit 75d05ca

Browse files
tomerdyim-lee
andauthored
docs cleanup (#91)
motivation: cleanup docs for oss changes: * add useful information in readme, with pointers to examples * update ci setup and example to use latest tools * update contributors list Co-authored-by: Yim Lee <[email protected]>
1 parent 3cb9330 commit 75d05ca

File tree

8 files changed

+164
-105
lines changed

8 files changed

+164
-105
lines changed

CONTRIBUTORS.txt

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ needs to be listed here.
1616
- Johannes Weiss <[email protected]>
1717
- Norman Maurer <[email protected]>
1818
- Tomer Doron <[email protected]>
19+
- tachyonics <[email protected]>
1920

2021
**Updating this list**
2122

Examples/LambdaFunctions/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
FROM swiftlang/swift:nightly-master-amazonlinux2
22

3-
RUN yum -y install git zip
3+
RUN yum -y install zip
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
FROM swiftlang/swift:nightly-master-amazonlinux2
22

3-
RUN yum -y install git zip
3+
RUN yum -y install zip

docker/Dockerfile

+6-16
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,14 @@
1-
ARG swift_version=5.0
2-
ARG ubuntu_version=bionic
3-
ARG base_image=swift:$swift_version-$ubuntu_version
1+
ARG swift_version=5.2
2+
# FIXME when 5.2 images are available
3+
#ARG base_image=swift:$swift_version-amazonlinux2
4+
ARG base_image=swiftlang/swift:nightly-amazonlinux2
45
FROM $base_image
56
# needed to do again after FROM due to docker limitation
67
ARG swift_version
7-
ARG ubuntu_version
8-
9-
# set as UTF-8
10-
RUN apt-get update && apt-get install -y locales locales-all
11-
ENV LC_ALL en_US.UTF-8
12-
ENV LANG en_US.UTF-8
13-
ENV LANGUAGE en_US.UTF-8
148

159
# dependencies
16-
RUN apt-get update && apt-get install -y wget
17-
RUN apt-get update && apt-get install -y lsof dnsutils netcat-openbsd net-tools curl jq # used by integration tests
18-
19-
# ruby and jazzy for docs generation
20-
RUN apt-get update && apt-get install -y ruby ruby-dev libsqlite3-dev
21-
RUN gem install jazzy --no-ri --no-rdoc
10+
RUN yum install -y wget perl-Digest-SHA
11+
RUN yum install -y lsof dnsutils netcat-openbsd net-tools curl jq # used by integration tests
2212

2313
# tools
2414
RUN mkdir -p $HOME/.tools

docker/Dockerfile.ubuntu

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
ARG swift_version=5.0
2+
ARG ubuntu_version=bionic
3+
ARG base_image=swift:$swift_version-$ubuntu_version
4+
FROM $base_image
5+
# needed to do again after FROM due to docker limitation
6+
ARG swift_version
7+
ARG ubuntu_version
8+
9+
# set as UTF-8
10+
RUN apt-get update && apt-get install -y locales locales-all
11+
ENV LC_ALL en_US.UTF-8
12+
ENV LANG en_US.UTF-8
13+
ENV LANGUAGE en_US.UTF-8
14+
15+
# dependencies
16+
RUN apt-get update && apt-get install -y wget
17+
RUN apt-get update && apt-get install -y lsof dnsutils netcat-openbsd net-tools curl jq # used by integration tests
18+
19+
# ruby and jazzy for docs generation
20+
RUN apt-get update && apt-get install -y ruby ruby-dev libsqlite3-dev
21+
RUN gem install jazzy --no-ri --no-rdoc
22+
23+
# tools
24+
RUN mkdir -p $HOME/.tools
25+
RUN echo 'export PATH="$HOME/.tools:$PATH"' >> $HOME/.profile
26+
27+
# script to allow mapping framepointers on linux (until part of the toolchain)
28+
RUN wget -q https://raw.githubusercontent.com/apple/swift/master/utils/symbolicate-linux-fatal -O $HOME/.tools/symbolicate-linux-fatal
29+
RUN chmod 755 $HOME/.tools/symbolicate-linux-fatal
30+
31+
# swiftformat (until part of the toolchain)
32+
33+
ARG swiftformat_version=0.44.6
34+
RUN git clone --branch $swiftformat_version --depth 1 https://github.com/nicklockwood/SwiftFormat $HOME/.tools/swift-format
35+
RUN cd $HOME/.tools/swift-format && swift build -c release
36+
RUN ln -s $HOME/.tools/swift-format/.build/release/swiftformat $HOME/.tools/swiftformat

docker/docker-compose.1804.52.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ services:
55
runtime-setup:
66
image: swift-aws-lambda:18.04-5.2
77
build:
8+
dockerfile: Dockerfile.ubuntu
89
args:
910
ubuntu_version: "bionic"
1011
swift_version: "5.2"

docker/docker-compose.1804.53.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
image: swift-aws-lambda:18.04-5.3
77
build:
88
args:
9-
base_image: "swiftlang/swift:nightly-5.3-bionic"
9+
base_image: "swiftlang/swift:nightly-amazonlinux2"
1010

1111
test:
1212
image: swift-aws-lambda:18.04-5.3

readme.md

+117-86
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)