Skip to content

Commit

Permalink
Migrate rust plugins to use sparse registry (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkwarren authored Mar 13, 2023
1 parent 6bec845 commit bc9088a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion plugins/community/neoeinstein-prost-serde/v0.2.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# syntax=docker/dockerfile:1.4
FROM rust:1.67.1-alpine3.17 as builder
FROM rust:1.68.0-alpine3.17 as builder
RUN apk add --no-cache musl-dev
WORKDIR /app
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
RUN --mount=type=cache,target=/usr/local/cargo/registry --mount=type=cache,target=/root/target \
cargo install protoc-gen-prost-serde --version 0.2.2 --locked --root /app

Expand Down
3 changes: 2 additions & 1 deletion plugins/community/neoeinstein-prost-serde/v0.2.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# syntax=docker/dockerfile:1.4
FROM rust:1.67.1-alpine3.17 as builder
FROM rust:1.68.0-alpine3.17 as builder
RUN apk add --no-cache musl-dev
WORKDIR /app
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
RUN --mount=type=cache,target=/usr/local/cargo/registry --mount=type=cache,target=/root/target \
cargo install protoc-gen-prost-serde --version 0.2.3 --locked --root /app

Expand Down
3 changes: 2 additions & 1 deletion plugins/community/neoeinstein-prost/v0.2.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# syntax=docker/dockerfile:1.4
FROM rust:1.66.0-alpine3.17 as builder
FROM rust:1.68.0-alpine3.17 as builder
RUN apk add --no-cache musl-dev
WORKDIR /app
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
RUN --mount=type=cache,target=/usr/local/cargo/registry --mount=type=cache,target=/root/target \
cargo install protoc-gen-prost --version 0.2.1 --locked --root /app

Expand Down
3 changes: 2 additions & 1 deletion plugins/community/neoeinstein-prost/v0.2.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# syntax=docker/dockerfile:1.4
FROM rust:1.67.1-alpine3.17 as builder
FROM rust:1.68.0-alpine3.17 as builder
RUN apk add --no-cache musl-dev
WORKDIR /app
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
RUN --mount=type=cache,target=/usr/local/cargo/registry --mount=type=cache,target=/root/target \
cargo install protoc-gen-prost --version 0.2.2 --locked --root /app

Expand Down
3 changes: 2 additions & 1 deletion plugins/community/neoeinstein-tonic/v0.2.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# syntax=docker/dockerfile:1.4
FROM rust:1.67.1-alpine3.17 as builder
FROM rust:1.68.0-alpine3.17 as builder
RUN apk add --no-cache musl-dev
WORKDIR /app
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
RUN --mount=type=cache,target=/usr/local/cargo/registry --mount=type=cache,target=/root/target \
cargo install protoc-gen-tonic --version 0.2.2 --locked --root /app

Expand Down

0 comments on commit bc9088a

Please sign in to comment.