Skip to content

docs cleanup #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <johannesweiss@apple.com>
- Norman Maurer <norman_maurer@apple.com>
- Tomer Doron <tomer@apple.com>
- tachyonics <simon@tachyonics.io>

**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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sadly is 5.2.4 is still not available on docker hub :(

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea we will adjust once its out


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.