Skip to content

Commit 34a1aff

Browse files
committed
feat(codebuild): support remote Docker server
1 parent 036b413 commit 34a1aff

File tree

14 files changed

+32468
-1
lines changed

14 files changed

+32468
-1
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-docker-server.js.snapshot/asset.c74d4e3c82f2db3767a5b28f12d80d3dc43fdb041406fd738e1a754a716b9f96.bundle/index.js

Lines changed: 30771 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-docker-server.js.snapshot/cdk.out

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-docker-server.js.snapshot/codebuild-project-docker-server.assets.json

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,206 @@
1+
{
2+
"Resources": {
3+
"MyProjectRole9BBE5233": {
4+
"Type": "AWS::IAM::Role",
5+
"Properties": {
6+
"AssumeRolePolicyDocument": {
7+
"Statement": [
8+
{
9+
"Action": "sts:AssumeRole",
10+
"Effect": "Allow",
11+
"Principal": {
12+
"Service": "codebuild.amazonaws.com"
13+
}
14+
}
15+
],
16+
"Version": "2012-10-17"
17+
}
18+
}
19+
},
20+
"MyProjectRoleDefaultPolicyB19B7C29": {
21+
"Type": "AWS::IAM::Policy",
22+
"Properties": {
23+
"PolicyDocument": {
24+
"Statement": [
25+
{
26+
"Action": [
27+
"logs:CreateLogGroup",
28+
"logs:CreateLogStream",
29+
"logs:PutLogEvents"
30+
],
31+
"Effect": "Allow",
32+
"Resource": [
33+
{
34+
"Fn::Join": [
35+
"",
36+
[
37+
"arn:",
38+
{
39+
"Ref": "AWS::Partition"
40+
},
41+
":logs:",
42+
{
43+
"Ref": "AWS::Region"
44+
},
45+
":",
46+
{
47+
"Ref": "AWS::AccountId"
48+
},
49+
":log-group:/aws/codebuild/",
50+
{
51+
"Ref": "MyProject39F7B0AE"
52+
},
53+
":*"
54+
]
55+
]
56+
},
57+
{
58+
"Fn::Join": [
59+
"",
60+
[
61+
"arn:",
62+
{
63+
"Ref": "AWS::Partition"
64+
},
65+
":logs:",
66+
{
67+
"Ref": "AWS::Region"
68+
},
69+
":",
70+
{
71+
"Ref": "AWS::AccountId"
72+
},
73+
":log-group:/aws/codebuild/",
74+
{
75+
"Ref": "MyProject39F7B0AE"
76+
}
77+
]
78+
]
79+
}
80+
]
81+
},
82+
{
83+
"Action": [
84+
"codebuild:BatchPutCodeCoverages",
85+
"codebuild:BatchPutTestCases",
86+
"codebuild:CreateReport",
87+
"codebuild:CreateReportGroup",
88+
"codebuild:UpdateReport"
89+
],
90+
"Effect": "Allow",
91+
"Resource": {
92+
"Fn::Join": [
93+
"",
94+
[
95+
"arn:",
96+
{
97+
"Ref": "AWS::Partition"
98+
},
99+
":codebuild:",
100+
{
101+
"Ref": "AWS::Region"
102+
},
103+
":",
104+
{
105+
"Ref": "AWS::AccountId"
106+
},
107+
":report-group/",
108+
{
109+
"Ref": "MyProject39F7B0AE"
110+
},
111+
"-*"
112+
]
113+
]
114+
}
115+
}
116+
],
117+
"Version": "2012-10-17"
118+
},
119+
"PolicyName": "MyProjectRoleDefaultPolicyB19B7C29",
120+
"Roles": [
121+
{
122+
"Ref": "MyProjectRole9BBE5233"
123+
}
124+
]
125+
}
126+
},
127+
"MyProject39F7B0AE": {
128+
"Type": "AWS::CodeBuild::Project",
129+
"Properties": {
130+
"Artifacts": {
131+
"Type": "NO_ARTIFACTS"
132+
},
133+
"Cache": {
134+
"Type": "NO_CACHE"
135+
},
136+
"EncryptionKey": "alias/aws/s3",
137+
"Environment": {
138+
"ComputeType": "BUILD_GENERAL1_SMALL",
139+
"DockerServer": {
140+
"ComputeType": "BUILD_GENERAL1_SMALL"
141+
},
142+
"Image": "aws/codebuild/standard:7.0",
143+
"ImagePullCredentialsType": "CODEBUILD",
144+
"PrivilegedMode": false,
145+
"Type": "LINUX_CONTAINER"
146+
},
147+
"ServiceRole": {
148+
"Fn::GetAtt": [
149+
"MyProjectRole9BBE5233",
150+
"Arn"
151+
]
152+
},
153+
"Source": {
154+
"BuildSpec": "{\n \"version\": \"0.2\",\n \"phases\": {\n \"build\": {\n \"commands\": [\n \"cd sample\",\n \"docker buildx build .\"\n ]\n }\n }\n}",
155+
"Location": "https://github.com/dockersamples/helloworld-demo-python.git",
156+
"ReportBuildStatus": true,
157+
"Type": "GITHUB"
158+
}
159+
}
160+
}
161+
},
162+
"Outputs": {
163+
"ExportsOutputRefMyProject39F7B0AE1CE3CA42": {
164+
"Value": {
165+
"Ref": "MyProject39F7B0AE"
166+
},
167+
"Export": {
168+
"Name": "codebuild-project-docker-server:ExportsOutputRefMyProject39F7B0AE1CE3CA42"
169+
}
170+
}
171+
},
172+
"Parameters": {
173+
"BootstrapVersion": {
174+
"Type": "AWS::SSM::Parameter::Value<String>",
175+
"Default": "/cdk-bootstrap/hnb659fds/version",
176+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
177+
}
178+
},
179+
"Rules": {
180+
"CheckBootstrapVersion": {
181+
"Assertions": [
182+
{
183+
"Assert": {
184+
"Fn::Not": [
185+
{
186+
"Fn::Contains": [
187+
[
188+
"1",
189+
"2",
190+
"3",
191+
"4",
192+
"5"
193+
],
194+
{
195+
"Ref": "BootstrapVersion"
196+
}
197+
]
198+
}
199+
]
200+
},
201+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
202+
}
203+
]
204+
}
205+
}
206+
}

packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-docker-server.js.snapshot/codebuildprojectdockerserverintegDefaultTestDeployAssert26905AE4.assets.json

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)