mirror of
https://github.com/swift-server/swift-aws-lambda-runtime.git
synced 2026-06-02 07:27:33 +00:00
a2b5326671
motivation: we are not actually using symbolicate-linux-fatal in any meaningful way in CI and it's pinned to the master branch which has been removed changes: remove symbolicate-linux-fatal fetching from Docker
22 lines
796 B
Docker
22 lines
796 B
Docker
ARG swift_version=5.2
|
|
# FIXME when 5.2 images are available
|
|
ARG base_image=swift:$swift_version-amazonlinux2
|
|
FROM $base_image
|
|
# needed to do again after FROM due to docker limitation
|
|
ARG swift_version
|
|
|
|
# dependencies
|
|
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
|
|
RUN echo 'export PATH="$HOME/.tools:$PATH"' >> $HOME/.profile
|
|
|
|
# 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
|