forked from aws/aws-sdk-pandas
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-docker-images.sh
More file actions
executable file
·64 lines (55 loc) · 1.32 KB
/
Copy pathbuild-docker-images.sh
File metadata and controls
executable file
·64 lines (55 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env bash
set -ex
cp ../../pyproject.toml .
cp ../../uv.lock .
export DOCKER_BUILDKIT=1
PYTHON_VERSION=${1:-ALL}
# Python 3.10
if [[ $PYTHON_VERSION == "ALL" || $PYTHON_VERSION == "3.10" ]]
then
docker build \
--pull \
--tag awswrangler-build-py310 \
--build-arg base_image=public.ecr.aws/lambda/python:3.10 \
.
fi
# Python 3.11
if [[ $PYTHON_VERSION == "ALL" || $PYTHON_VERSION == "3.11" ]]
then
docker build \
--pull \
--tag awswrangler-build-py311 \
--build-arg base_image=public.ecr.aws/lambda/python:3.11 \
.
fi
# Python 3.12
if [[ $PYTHON_VERSION == "ALL" || $PYTHON_VERSION == "3.12" ]]
then
docker build \
--pull \
--tag awswrangler-build-py312 \
--build-arg base_image=public.ecr.aws/lambda/python:3.12 \
--file Dockerfile.al2023 \
.
fi
# Python 3.13
if [[ $PYTHON_VERSION == "ALL" || $PYTHON_VERSION == "3.13" ]]
then
docker build \
--pull \
--tag awswrangler-build-py313 \
--build-arg base_image=public.ecr.aws/lambda/python:3.13 \
--file Dockerfile.al2023 \
.
fi
# Python 3.14
if [[ $PYTHON_VERSION == "ALL" || $PYTHON_VERSION == "3.14" ]]
then
docker build \
--pull \
--tag awswrangler-build-py314 \
--build-arg base_image=public.ecr.aws/lambda/python:3.14 \
--file Dockerfile.al2023 \
.
fi
rm -rf pyproject.toml uv.lock