Skip to content

Commit 32b99bd

Browse files
committed
initial commit to fix docker compose
1 parent 7b28a79 commit 32b99bd

6 files changed

+27
-81
lines changed

docker/docker-compose.al2.510.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.

docker/docker-compose.al2.57.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.

docker/docker-compose.al2.58.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.

docker/docker-compose.al2.59.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.

docker/docker-compose.al2.6.0.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: "3"
2+
3+
services:
4+
5+
runtime-setup:
6+
image: swift-aws-lambda:al2-6.0
7+
build:
8+
args:
9+
base_image: "swiftlang/swift:nightly-6.0-amazonlinux2"
10+
11+
test:
12+
image: swift-aws-lambda:al2-6.0
13+
14+
test-examples:
15+
image: swift-aws-lambda:al2-6.0
16+
17+
shell:
18+
image: swift-aws-lambda:al2-6.0

docker/docker-compose.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ services:
2424

2525
soundness:
2626
<<: *common
27-
command: /bin/bash -cl "./scripts/soundness.sh"
27+
command: >-
28+
/bin/bash -clx "
29+
curl -s https://raw.githubusercontent.com/apple/swift-nio/main/scripts/check-swift-format.sh | bash &&
30+
curl -s https://raw.githubusercontent.com/apple/swift-nio/main/scripts/check-license-header.sh | bash
31+
"
2832
2933
test:
3034
<<: *common
@@ -34,14 +38,10 @@ services:
3438
<<: *common
3539
command: >-
3640
/bin/bash -clx "
37-
LAMBDA_USE_LOCAL_DEPS=true swift build --package-path Examples/Benchmark &&
38-
LAMBDA_USE_LOCAL_DEPS=true swift build --package-path Examples/Deployment &&
39-
LAMBDA_USE_LOCAL_DEPS=true swift build --package-path Examples/Echo &&
40-
LAMBDA_USE_LOCAL_DEPS=true swift build --package-path Examples/ErrorHandling &&
41-
LAMBDA_USE_LOCAL_DEPS=true swift build --package-path Examples/Foundation &&
42-
LAMBDA_USE_LOCAL_DEPS=true swift build --package-path Examples/JSON &&
43-
LAMBDA_USE_LOCAL_DEPS=true swift build --package-path Examples/LocalDebugging/MyLambda &&
44-
LAMBDA_USE_LOCAL_DEPS=true swift test --package-path Examples/Testing
41+
LAMBDA_USE_LOCAL_DEPS=true swift build --package-path Examples/APIGateway &&
42+
LAMBDA_USE_LOCAL_DEPS=true swift build --package-path Examples/AWSSDK &&
43+
LAMBDA_USE_LOCAL_DEPS=true swift build --package-path Examples/HelloWorld &&
44+
LAMBDA_USE_LOCAL_DEPS=true swift build --package-path Examples/Soto &&
4545
"
4646
4747
# util

0 commit comments

Comments
 (0)