Skip to content

Commit 3a2cb89

Browse files
authored
merge: Merge pull request #23 from rust-serverless/feature/update_to_1.56.1
feat: update to Rust 1.56.1
2 parents 3283e3a + f9533d2 commit 3a2cb89

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.4.0-rust-1.56.1
2+
3+
* Upgrade to Rust [`1.56.1`](https://blog.rust-lang.org/2021/11/01/Rust-1.56.1.html)
4+
15
# 0.4.0-rust-1.56.0
26

37
* Upgrade to Rust [`1.56.0`](https://blog.rust-lang.org/2021/10/21/Rust-1.56.0.html)

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM public.ecr.aws/lambda/provided:al2
22

3-
ARG RUST_VERSION=1.56.0
3+
ARG RUST_VERSION=1.56.1
44
RUN yum install -y jq openssl-devel gcc zip
55
RUN set -o pipefail && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
66
| CARGO_HOME=/cargo RUSTUP_HOME=/rustup sh -s -- -y --profile minimal --default-toolchain $RUST_VERSION

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
DOCKER ?= docker
22
INPUT_RELEASE_VERSION ?= 0.4.0
3-
RUST_VERSION ?= 1.56.0
3+
RUST_VERSION ?= 1.56.1
44
REPO ?= rustserverless/lambda-rust
55
TAG ?= latest
66

README.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
## 🤔 about
55

6-
This docker image extends [lambda ci `provided.al2`](https://github.com/lambci/docker-lambda#documentation) builder docker image, a faithful reproduction of the actual AWS "**provided.al2**" Lambda runtime environment,
7-
and installs [rustup](https://rustup.rs/) and the *stable* rust toolchain.
6+
This docker image extends AWS Lambda `provided.al2 runtime environment, and installs [rustup](https://rustup.rs/) and the *stable* rust toolchain.
87

98
This provides a build environment, consistent with your target execution environment for predictable results.
109

@@ -108,7 +107,7 @@ output (not zipped) is available under `target/lambda/{profile}/output/{your-lam
108107
You will see both `bootstrap` and `bootstrap.debug` files there.
109108
> **⚠️ Note:** `PACKAGE=false` prevents `package` hook from running.
110109
111-
You can then invoke this bootstap executable with the lambda-ci docker image for the `provided.al2` AWS lambda runtime with a one off container.
110+
You can then invoke this bootstap executable for the `provided.al2` AWS lambda runtime with a one off container.
112111

113112
```sh
114113
# Build your function skipping the zip creation step
@@ -128,7 +127,7 @@ $ docker run \
128127
-i -e DOCKER_LAMBDA_USE_STDIN=1 \
129128
--rm \
130129
-v ${PWD}/target/lambda/release/output/{your-binary-name}:/var/task:ro,delegated \
131-
lambci/lambda:provided.al2
130+
public.ecr.aws/lambda/provided:al2
132131

133132
# provide an event payload via stdin (typically a json blob)
134133

@@ -148,7 +147,7 @@ $ unzip -o \
148147
-v /tmp/lambda:/var/task:ro,delegated \
149148
-e DOCKER_LAMBDA_STAY_OPEN=1 \
150149
-p 9001:9001 \
151-
lambci/lambda:provided.al2
150+
public.ecr.aws/lambda/provided:al2
152151
```
153152

154153
In a separate terminal, you can invoke your function with `curl`

0 commit comments

Comments
 (0)