sst 2.0.37 → 2.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/commands/plugins/kysely.js +1 -1
- package/credentials.d.ts +2 -2
- package/package.json +21 -21
- package/runtime/handlers/python.js +33 -20
- package/{constructs/util/python/bundling.d.ts → runtime/handlers/pythonBundling.d.ts} +7 -5
- package/{constructs/util/python/bundling.js → runtime/handlers/pythonBundling.js} +20 -15
- package/sst.mjs +301 -138
- package/support/base-site-archiver.mjs +16 -16
- package/support/bootstrap-metadata-function/index.mjs +7490 -16374
- package/support/bridge/bridge.mjs +35 -35
- package/support/custom-resources/index.mjs +66101 -60805
- package/support/job-invoker/index.mjs +2903 -1929
- package/support/python-runtime/Dockerfile +9 -0
- package/support/python-runtime/Dockerfile.custom +21 -0
- package/support/python-runtime/Dockerfile.dependencies +26 -0
- package/support/rds-migrator/index.mjs +19 -17
- package/support/script-function/index.mjs +6990 -4697
- package/support/ssr-site-function-archiver.mjs +15 -15
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# The correct AWS SAM build image based on the runtime of the function will be
|
|
2
|
+
# passed as build arg. The default allows to do `docker build .` when testing.
|
|
3
|
+
ARG IMAGE=amazon/aws-sam-cli-build-image-python3.7
|
|
4
|
+
FROM $IMAGE
|
|
5
|
+
|
|
6
|
+
# Ensure rsync is installed
|
|
7
|
+
RUN yum -q list installed rsync &>/dev/null || yum install -y rsync
|
|
8
|
+
|
|
9
|
+
CMD [ "python" ]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# The correct AWS SAM build image based on the runtime of the function will be
|
|
2
|
+
# passed as build arg. The default allows to do `docker build .` when testing.
|
|
3
|
+
ARG IMAGE=amazon/aws-sam-cli-build-image-python3.7
|
|
4
|
+
FROM $IMAGE
|
|
5
|
+
|
|
6
|
+
# Ensure rsync is installed
|
|
7
|
+
RUN yum -q list installed rsync &>/dev/null || yum install -y rsync
|
|
8
|
+
|
|
9
|
+
# Upgrade pip (required by cryptography v3.4 and above, which is a dependency of poetry)
|
|
10
|
+
RUN pip install --upgrade pip
|
|
11
|
+
|
|
12
|
+
# Install pipenv and poetry so we can create a requirements.txt if we detect pipfile or poetry.lock respectively
|
|
13
|
+
RUN pip install pipenv poetry
|
|
14
|
+
|
|
15
|
+
# Install the dependencies in a cacheable layer
|
|
16
|
+
WORKDIR /var/dependencies
|
|
17
|
+
COPY Pipfile* pyproject* poetry* requirements.tx[t] sst-deps-install-command.sh ./
|
|
18
|
+
|
|
19
|
+
RUN ./sst-deps-install-command.sh
|
|
20
|
+
|
|
21
|
+
CMD [ "python" ]
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# The correct AWS SAM build image based on the runtime of the function will be
|
|
2
|
+
# passed as build arg. The default allows to do `docker build .` when testing.
|
|
3
|
+
ARG IMAGE=amazon/aws-sam-cli-build-image-python3.7
|
|
4
|
+
FROM $IMAGE
|
|
5
|
+
|
|
6
|
+
# Ensure rsync is installed
|
|
7
|
+
RUN yum -q list installed rsync &>/dev/null || yum install -y rsync
|
|
8
|
+
|
|
9
|
+
# Upgrade pip (required by cryptography v3.4 and above, which is a dependency of poetry)
|
|
10
|
+
RUN pip install --upgrade pip
|
|
11
|
+
|
|
12
|
+
# Install pipenv and poetry so we can create a requirements.txt if we detect pipfile or poetry.lock respectively
|
|
13
|
+
RUN pip install pipenv poetry
|
|
14
|
+
|
|
15
|
+
# Install the dependencies in a cacheable layer
|
|
16
|
+
WORKDIR /var/dependencies
|
|
17
|
+
COPY Pipfile* pyproject* poetry* requirements.tx[t] ./
|
|
18
|
+
|
|
19
|
+
# Run these command separately
|
|
20
|
+
# Note: "pipenv requirements > requirements.txt" command can fail if the pipenv is using a Python version (ie. Python3.9)
|
|
21
|
+
# that's not the same as the Lambda Python version (ie. Python3.8)
|
|
22
|
+
RUN if [ -f 'Pipfile' ]; then pipenv requirements > requirements.txt; else echo "Pipfile not found"; fi
|
|
23
|
+
RUN if [ -f 'poetry.lock' ]; then poetry export --with-credentials --format requirements.txt --output requirements.txt; else echo "poetry.lock not found"; fi
|
|
24
|
+
RUN if [ -f 'requirements.txt' ]; then pip install -r requirements.txt -t .; else echo "requirements.txt not found"; fi
|
|
25
|
+
|
|
26
|
+
CMD [ "python" ]
|