Files
swift-nio-http2/docker/docker-compose.yaml
T
Cory Benfield 42087764b1 Add Dockerfile to run h2spec. (#41)
Motivation:

When we get around to it we should aim for our example server to pass
h2spec with flying colours. We aren't there yet, but it's helpful to
be able to run h2spec easily.

Modifications:

Add a docker-compose recipe for running h2spec.

Result:

It'll be easier to run h2spec.
2019-02-21 16:32:29 +00:00

34 lines
719 B
YAML

# this file is not designed to be run directly
# instead, use the docker-compose.<os>.<swift> files
# eg docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.1804.42.yaml run test
version: "3"
services:
runtime-setup:
image: swift-nio-http2:default
build:
context: .
dockerfile: Dockerfile
common: &common
image: swift-nio-http2:default
depends_on: [runtime-setup]
volumes:
- ~/.ssh:/root/.ssh
- ..:/code
working_dir: /code
sanity:
<<: *common
command: /bin/bash -cl "./scripts/sanity.sh"
test:
<<: *common
command: /bin/bash -cl "swift test"
h2spec:
<<: *common
command: /bin/bash -cl "./scripts/test_h2spec.sh"