Skip to content

Commit

Permalink
docs cleanup (#91)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
tomerd and yim-lee committed May 28, 2020
1 parent 3cb9330 commit 75d05ca
Show file tree
Hide file tree
Showing 8 changed files with 164 additions and 105 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ needs to be listed here.
- Johannes Weiss <[email protected]>
- Norman Maurer <[email protected]>
- Tomer Doron <[email protected]>
- tachyonics <[email protected]>

**Updating this list**

Expand Down
2 changes: 1 addition & 1 deletion Examples/LambdaFunctions/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM swiftlang/swift:nightly-master-amazonlinux2

RUN yum -y install git zip
RUN yum -y install zip
2 changes: 1 addition & 1 deletion Examples/LocalDebugging/MyLambda/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM swiftlang/swift:nightly-master-amazonlinux2

RUN yum -y install git zip
RUN yum -y install zip
22 changes: 6 additions & 16 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
ARG swift_version=5.0
ARG ubuntu_version=bionic
ARG base_image=swift:$swift_version-$ubuntu_version
ARG swift_version=5.2
# FIXME when 5.2 images are available
#ARG base_image=swift:$swift_version-amazonlinux2
ARG base_image=swiftlang/swift:nightly-amazonlinux2
FROM $base_image
# needed to do again after FROM due to docker limitation
ARG swift_version
ARG ubuntu_version

# set as UTF-8
RUN apt-get update && apt-get install -y locales locales-all
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8

# dependencies
RUN apt-get update && apt-get install -y wget
RUN apt-get update && apt-get install -y lsof dnsutils netcat-openbsd net-tools curl jq # used by integration tests

# ruby and jazzy for docs generation
RUN apt-get update && apt-get install -y ruby ruby-dev libsqlite3-dev
RUN gem install jazzy --no-ri --no-rdoc
RUN yum install -y wget perl-Digest-SHA
RUN yum install -y lsof dnsutils netcat-openbsd net-tools curl jq # used by integration tests

# tools
RUN mkdir -p $HOME/.tools
Expand Down
36 changes: 36 additions & 0 deletions docker/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
ARG swift_version=5.0
ARG ubuntu_version=bionic
ARG base_image=swift:$swift_version-$ubuntu_version
FROM $base_image
# needed to do again after FROM due to docker limitation
ARG swift_version
ARG ubuntu_version

# set as UTF-8
RUN apt-get update && apt-get install -y locales locales-all
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8

# dependencies
RUN apt-get update && apt-get install -y wget
RUN apt-get update && apt-get install -y lsof dnsutils netcat-openbsd net-tools curl jq # used by integration tests

# ruby and jazzy for docs generation
RUN apt-get update && apt-get install -y ruby ruby-dev libsqlite3-dev
RUN gem install jazzy --no-ri --no-rdoc

# tools
RUN mkdir -p $HOME/.tools
RUN echo 'export PATH="$HOME/.tools:$PATH"' >> $HOME/.profile

# script to allow mapping framepointers on linux (until part of the toolchain)
RUN wget -q https://raw.githubusercontent.com/apple/swift/master/utils/symbolicate-linux-fatal -O $HOME/.tools/symbolicate-linux-fatal
RUN chmod 755 $HOME/.tools/symbolicate-linux-fatal

# swiftformat (until part of the toolchain)

ARG swiftformat_version=0.44.6
RUN git clone --branch $swiftformat_version --depth 1 https://github.com/nicklockwood/SwiftFormat $HOME/.tools/swift-format
RUN cd $HOME/.tools/swift-format && swift build -c release
RUN ln -s $HOME/.tools/swift-format/.build/release/swiftformat $HOME/.tools/swiftformat
1 change: 1 addition & 0 deletions docker/docker-compose.1804.52.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ services:
runtime-setup:
image: swift-aws-lambda:18.04-5.2
build:
dockerfile: Dockerfile.ubuntu
args:
ubuntu_version: "bionic"
swift_version: "5.2"
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.1804.53.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
image: swift-aws-lambda:18.04-5.3
build:
args:
base_image: "swiftlang/swift:nightly-5.3-bionic"
base_image: "swiftlang/swift:nightly-amazonlinux2"

test:
image: swift-aws-lambda:18.04-5.3
Expand Down
203 changes: 117 additions & 86 deletions readme.md

Large diffs are not rendered by default.

0 comments on commit 75d05ca

Please sign in to comment.