Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit 46d668c

Browse files
author
Chandrashekar
committed
fixed dockerfile to use python 3.8
1 parent 7213395 commit 46d668c

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
functions/packages
22
.idea
3-
.DS_Store
3+
.DS_Store
4+
taskcat_outputs

functions/source/CreateSSHKey/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM lambci/lambda:build-python3.7
1+
FROM lambci/lambda:build-python3.8
22

33
COPY . .
44

55
RUN mkdir -p python/ && \
6-
pip install -t python/ -r ./requirements.txt && \
6+
pip install -t ./ -r ./requirements.txt && \
77
find . -name "*.dist-info" -exec rm -rf {} \; | true && \
88
find . -name "*.egg-info" -exec rm -rf {} \; | true && \
99
find . -name "*.pth" -exec rm -rf {} \; | true && \

templates/git2s3.template.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ Resources:
144144
- functions/packages/CreateSSHKey/lambda.zip
145145
- functions/packages/DeleteBucketContents/lambda.zip
146146
- functions/packages/GitPullS3/lambda.zip
147-
- functions/packages/CustomActionLambda/lambda.zip
148147

149148
CopyZipsRole:
150149
Type: AWS::IAM::Role
@@ -383,10 +382,10 @@ Resources:
383382
Type: AWS::Lambda::Function
384383
Properties:
385384
Handler: lambda_function.lambda_handler
386-
MemorySize: '128'
385+
MemorySize: 128
387386
Role: !GetAtt 'CreateSSHKeyRole.Arn'
388387
Runtime: python3.8
389-
Timeout: '300'
388+
Timeout: 300
390389
Code:
391390
S3Bucket: !Ref 'LambdaZipsBucket'
392391
S3Key: !Sub '${QSS3KeyPrefix}functions/packages/CreateSSHKey/lambda.zip'
@@ -451,10 +450,10 @@ Resources:
451450
Type: AWS::Lambda::Function
452451
Properties:
453452
Handler: lambda_function.lambda_handler
454-
MemorySize: '128'
453+
MemorySize: 128
455454
Role: !GetAtt 'DeleteBucketContentsRole.Arn'
456455
Runtime: python3.8
457-
Timeout: '300'
456+
Timeout: 300
458457
Code:
459458
S3Bucket: !Ref 'LambdaZipsBucket'
460459
S3Key: !Sub '${QSS3KeyPrefix}functions/packages/DeleteBucketContents/lambda.zip'
@@ -693,10 +692,10 @@ Resources:
693692
Type: AWS::Lambda::Function
694693
Properties:
695694
Handler: lambda_function.lambda_handler
696-
MemorySize: '128'
695+
MemorySize: 128
697696
Role: !GetAtt 'GitPullRole.Arn'
698697
Runtime: python3.8
699-
Timeout: '900'
698+
Timeout: 900
700699
VpcConfig: !If
701700
- ShouldRunInVPC
702701
- SecurityGroupIds:

0 commit comments

Comments
 (0)