diff --git a/CHANGELOG.md b/CHANGELOG.md index 24f21cf..5bebbaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +# 0.4.0-rust-1.45.2 + +* **Breaking change** in avoid mixed user permissions when volume mounting cargo cache directories. This docker images now configures a cargo installation to `/cargo` directory rather than `/home/root/.cargo`. You'll also want to ensure +docker runs use a docker user that maps to your host machine's user id and group. + +```diff +$ docker run --rm \ ++ -u $(id -u):$(id -g) \ + -v ${PWD}:/code \ ++ -v ${HOME}/.cargo/registry:/cargo/registry \ ++ -v ${HOME}/.cargo/git:/cargo/git \ + softprops/lambda-rust +``` + +* Upgrade to Rust [`1.45.2`](https://blog.rust-lang.org/2020/08/03/Rust-1.45.2.html) + # 0.3.0-rust-1.45.0 * Upgrade to Rust [`1.45.0`](https://blog.rust-lang.org/2020/07/16/Rust-1.45.0.html) diff --git a/Dockerfile b/Dockerfile index 3cd0736..fb6495a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # https://github.com/lambci/docker-lambda#documentation FROM lambci/lambda:build-provided -ARG RUST_VERSION=stable +ARG RUST_VERSION=1.45.2 RUN yum install -y jq RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \ | CARGO_HOME=/cargo RUSTUP_HOME=/rustup sh -s -- -y --profile minimal --default-toolchain $RUST_VERSION diff --git a/Makefile b/Makefile index 28e7f7b..7cb3c43 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ VERSION ?= 0.3.0 -RUST_VERSION ?= 1.45.0 +RUST_VERSION ?= 1.45.2 REPO ?= softprops/lambda-rust TAG ?= "$(REPO):$(VERSION)-rust-$(RUST_VERSION)"