mirror of
https://github.com/apple/swift-crypto
synced 2026-11-24 04:37:48 +00:00
* 1) Adding gyb to scripts 2) Adding warning in gyb files about gyb overwritting manual edits to gyb generated swift files 3) Updated README with gyb instructions 4) Adding script for running all gyb generation 5) Adding CI check for discrepancies in gyb generated files * Updating Dockerfile
39 lines
1.6 KiB
Docker
39 lines
1.6 KiB
Docker
ARG swift_version=5.0
|
|
ARG ubuntu_version=bionic
|
|
FROM swift:$swift_version-$ubuntu_version
|
|
# 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
|
|
|
|
# Get lldb out of the way
|
|
RUN mv /usr/lib/python2.7/site-packages/* /usr/lib/python2.7/dist-packages && rmdir /usr/lib/python2.7/site-packages && ln -s /usr/lib/python2.7/dist-packages /usr/lib/python2.7/site-packages
|
|
|
|
# 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 python2.7 # 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.40.12
|
|
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
|