mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-29 05:24:22 +00:00
Swift 5.4 Docker setup (#275)
This commit is contained in:
1 parent
16e49c6246
commit
fa3775a134
2 files changed
+50
-2
No files matched your search
+4
-2
@@ -17,9 +17,11 @@ 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 apt-get update && apt-get install -y ruby ruby-dev libsqlite3-dev build-essential
|
||||
# switch off gem docs building
|
||||
RUN echo "gem: --no-document" > ~/.gemrc
|
||||
# jazzy no longer works on xenial as ruby is too old.
|
||||
RUN if [ "${ubuntu_version}" != "xenial" ] ; then gem install jazzy --no-ri --no-rdoc ; fi
|
||||
RUN if [ "${ubuntu_version}" != "xenial" ] ; then gem install jazzy; fi
|
||||
|
||||
# tools
|
||||
RUN mkdir -p $HOME/.tools
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
|
||||
runtime-setup:
|
||||
image: swift-nio-http2:20.04-5.4
|
||||
build:
|
||||
args:
|
||||
base_image: "swiftlang/swift:nightly-5.4-focal"
|
||||
ubuntu_version: "focal"
|
||||
swift_version: "5.4"
|
||||
h2spec_version: "2.2.1"
|
||||
|
||||
unit-tests:
|
||||
image: swift-nio-http2:20.04-5.4
|
||||
|
||||
integration-tests:
|
||||
image: swift-nio-http2:20.04-5.4
|
||||
environment:
|
||||
- MAX_ALLOCS_ALLOWED_create_client_stream_channel=58000
|
||||
- MAX_ALLOCS_ALLOWED_hpack_decoding=5050
|
||||
- MAX_ALLOCS_ALLOWED_client_server_request_response=303000
|
||||
- MAX_ALLOCS_ALLOWED_client_server_h1_request_response=342000
|
||||
- MAX_ALLOCS_ALLOWED_1k_requests_interleaved=53000
|
||||
- MAX_ALLOCS_ALLOWED_1k_requests_noninterleaved=52000
|
||||
- MAX_ALLOCS_ALLOWED_stream_teardown_100_concurrent=364000
|
||||
|
||||
performance-test:
|
||||
image: swift-nio-http2:20.04-5.4
|
||||
|
||||
h2spec:
|
||||
image: swift-nio-http2:20.04-5.4
|
||||
|
||||
test:
|
||||
image: swift-nio-http2:20.04-5.4
|
||||
environment:
|
||||
- MAX_ALLOCS_ALLOWED_create_client_stream_channel=58000
|
||||
- MAX_ALLOCS_ALLOWED_hpack_decoding=5050
|
||||
- MAX_ALLOCS_ALLOWED_client_server_request_response=303000
|
||||
- MAX_ALLOCS_ALLOWED_client_server_h1_request_response=342000
|
||||
- MAX_ALLOCS_ALLOWED_1k_requests_interleaved=53000
|
||||
- MAX_ALLOCS_ALLOWED_1k_requests_noninterleaved=52000
|
||||
- MAX_ALLOCS_ALLOWED_stream_teardown_100_concurrent=364000
|
||||
|
||||
shell:
|
||||
image: swift-nio-http2:20.04-5.4
|
||||
Reference in new issue
Block a user