Files
swift-nio-http2/docker/docker-compose.yaml
T
tomer doron 04ed07e839 update docker setup (#33)
motivation: support swift 4.2 and 5.0

changes:
* add docker-compose variants for 18.04/4.2 and 18.04/5.0
* update Dockerfile to more correctly handle swift distro urls
* update Dockerfile to more correctly handle curl
* drop redundant ubuntu prefix
2018-12-12 10:13:51 -08:00

29 lines
637 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"