Files
swift-aws-lambda-events/docker/docker-compose.yaml
tom doron 91cdbbebc7 split events into spearate package
motivation: the runtime library has a stabel API while the events are still moving target, so in order to provide a 1.0 stable version we should separate them out

changes:
* import events module from the swift-aws-lambda-runtime, including git history
* update docker setup
* remove redundant examples and  scripts
2021-07-29 13:34:58 -07:00

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