Files
swift-service-lifecycle/docker/docker-compose.yaml
T
tomer doron 0e2d952871 update readme to reflect updated API (#37)
motivation: keep readme in sync with code

changes:
* update readme to latest API + add nesting section
* update leftover renaming issues
2020-04-09 22:30:14 -07:00

38 lines
828 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.50.yaml run test
version: "3"
services:
runtime-setup:
image: swift-service-bootstrap:default
build:
context: .
dockerfile: Dockerfile
common: &common
image: swift-service-bootstrap:default
depends_on: [runtime-setup]
volumes:
- ~/.ssh:/root/.ssh
- ..:/code:z
working_dir: /code
cap_drop:
- CAP_NET_RAW
- CAP_NET_BIND_SERVICE
sanity:
<<: *common
command: /bin/bash -cl "./scripts/sanity.sh"
test:
<<: *common
command: /bin/bash -cl "swift test -Xswiftc -warnings-as-errors $${SANITIZER_ARG-}"
# util
shell:
<<: *common
entrypoint: /bin/bash