diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 7e60f164b..4f3ed49ca 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -146,8 +146,6 @@ jobs: cp ../cla-backend-go/bin/zipbuilder-scheduler-lambda bin/ cp ../cla-backend-go/bin/zipbuilder-lambda bin/ cp ../cla-backend-go/bin/gitlab-repository-check-lambda bin/ - mkdir -p packages - docker run --rm -v $(pwd)/packages:/packages -w /packages lambci/lambda:build-python3.7 pip install cryptography -t . - name: EasyCLA v1 Deployment us-east-1 diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 2abd531ed..abe1ad66b 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -124,8 +124,6 @@ jobs: cp ../cla-backend-go/bin/zipbuilder-scheduler-lambda bin/ cp ../cla-backend-go/bin/zipbuilder-lambda bin/ cp ../cla-backend-go/bin/gitlab-repository-check-lambda bin/ - mkdir -p packages - docker run --rm -v $(pwd)/packages:/packages -w /packages lambci/lambda:build-python3.7 pip install cryptography -t . - name: EasyCLA v1 Deployment us-east-1 working-directory: cla-backend diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 31d6b421c..addebee5b 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -124,8 +124,6 @@ jobs: cp ../cla-backend-go/bin/zipbuilder-scheduler-lambda bin/ cp ../cla-backend-go/bin/zipbuilder-lambda bin/ cp ../cla-backend-go/bin/gitlab-repository-check-lambda bin/ - mkdir -p packages - docker run --rm -v $(pwd)/packages:/packages -w /packages lambci/lambda:build-python3.7 pip install cryptography -t . - name: EasyCLA v1 Deployment us-east-1 working-directory: cla-backend diff --git a/cla-backend/requirements.txt b/cla-backend/requirements.txt index d4c5f7658..645391dd4 100644 --- a/cla-backend/requirements.txt +++ b/cla-backend/requirements.txt @@ -59,4 +59,5 @@ wcwidth==0.1.7 Werkzeug==0.15.5 wrapt==1.11.2 zipp==3.15.0 -markupsafe==2.0.1 \ No newline at end of file +markupsafe==2.0.1 +cryptography==41.0.3 \ No newline at end of file diff --git a/cla-backend/serverless.yml b/cla-backend/serverless.yml index d1015db32..977c9d950 100644 --- a/cla-backend/serverless.yml +++ b/cla-backend/serverless.yml @@ -33,7 +33,10 @@ custom: wsgi: app: cla.routes.__hug_wsgi__ pythonBin: python - packRequirements: false + pythonRequirements: + dockerizePip: 'non-linux' + dockerImage: public.ecr.aws/sam/build-python3.9:latest + dockerRunCmdExtraArgs: ['--platform', 'linux/amd64'] # Config for serverless-prune-plugin - remove all but the 10 most recent # versions to avoid the "Code storage limit exceeded" error prune: