Skip to content

Commit

Permalink
Build Image
Browse files Browse the repository at this point in the history
debugging go.lang image
  • Loading branch information
ChrisPates committed Jun 15, 2022
1 parent 3618c55 commit 9b570cc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
26 changes: 20 additions & 6 deletions cicd/cloudformation/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,9 @@ Resources:
BuildSpec: "cicd/buildimage.yml"
Environment:
ComputeType: BUILD_GENERAL1_SMALL
Image: docker:dind
Image: aws/codebuild/standard:5.0
Type: LINUX_CONTAINER
PrivilegedMode: true
EnvironmentVariables:
- Name: ImageRepo
Value: golang
Expand Down Expand Up @@ -312,11 +313,11 @@ Resources:
ServiceRole: !Ref CodeBuildImagesRole
Source:
Type: CODEPIPELINE
BuildSpec: "cicd/buildimage.yml"
Environment:
ComputeType: BUILD_GENERAL1_SMALL
Image: docker:dind
Image: aws/codebuild/standard:5.0
Type: LINUX_CONTAINER
PrivilegedMode: true
EnvironmentVariables:
- Name: ImageRepo
Value: sam
Expand Down Expand Up @@ -564,12 +565,25 @@ Resources:
Resource:
- !Sub ${ArtifactBucket.Arn}/*
- Action:
- 'ecr:BatchCheckLayerAvailability'
- 'ecr:CompleteLayerUpload'
- 'ecr:GetAuthorizationToken'
- 'ecr:DescribeRepositories'
- 'ecr:DescribeImages'
Effect: Allow
Resource: '*'
- Action:
- 'ecr:BatchCheckLayerAvailability'
- 'ecr:GetDownloadUrlForLayer'
- 'ecr:GetRepositoryPolicy'
- 'ecr:ListImages'
- 'ecr:BatchGetImage'
- 'ecr:GetLifecyclePolicy'
- 'ecr:GetLifecyclePolicyPreview'
- 'ecr:ListTagsForResource'
- 'ecr:DescribeImageScanFindings'
- 'ecr:InitiateLayerUpload'
- 'ecr:PutImage'
- 'ecr:UploadLayerPart'
- 'ecr:CompleteLayerUploadr'
- 'ecr:PutImage'
Effect: Allow
Resource:
- !Sub ${BuildImageGoRepo.Arn}
Expand Down
2 changes: 1 addition & 1 deletion cicd/golang/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM aws/codebuild/standard:5.0 AS build
FROM standard:5.0 AS build
#Install go.lang
RUN wget -q https://storage.googleapis.com/golang/go${ImageVersion}.linux-amd64.tar.gz \
&& tar -C / -xzf go${ImageVersion}.linux-amd64.tar.gz \
Expand Down

0 comments on commit 9b570cc

Please sign in to comment.