Currently I'm using a dind configuration in gitlab
This dind works for me to deploy a dockerized lambda function through SAM.
This is my before script
- apk add --no-cache curl jq
- apk add --no-cache python3 python3-dev py3-setuptools
- apk add py3-pip
- apk add --no-cache build-base g++ make cmake unzip curl-dev
- apk add --no-cache autoconf automake libtool libexecinfo-dev
- apk add --no-cache git
- pip3 install --no-cache --upgrade wheel
- pip3 install awscli --upgrade
- pip3 install aws-sam-cli --upgrade
I'm having troubles because the lambda function python version is 3.8 an sam builds complains that the version the docker gitlab setup is different and doesn't find 3.8