Skip to content

Commit ab084d9

Browse files
authored
Fix Plane docker builds (#850)
Broken by #849.
1 parent 0a43883 commit ab084d9

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

docker/Dockerfile

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:bookworm AS builder
1+
FROM rust:1.83-bullseye AS builder
22

33
WORKDIR /work
44
COPY Cargo.toml /work/
@@ -7,7 +7,7 @@ COPY dynamic-proxy/Cargo.toml /work/dynamic-proxy/Cargo.toml
77
COPY plane/Cargo.toml /work/plane/Cargo.toml
88
COPY plane/plane-tests/plane-test-macro/Cargo.toml /work/plane/plane-tests/plane-test-macro/Cargo.toml
99
COPY plane/plane-tests/Cargo.toml /work/plane/plane-tests/Cargo.toml
10-
COPY plane/plane-dynamic/Cargo.toml /work/plane/plane-dynamic/Cargo.toml
10+
COPY common/Cargo.toml /work/common/Cargo.toml
1111

1212
RUN mkdir /work/plane/src
1313
RUN echo "fn main() {}" > /work/plane/src/main.rs
@@ -17,18 +17,20 @@ RUN touch /work/dynamic-proxy/src/lib.rs
1717

1818
RUN mkdir -p /work/plane/plane-tests/src
1919
RUN mkdir -p /work/plane/plane-tests/plane-test-macro/src
20-
RUN mkdir -p /work/plane/plane-dynamic/src
2120
RUN touch /work/plane/plane-tests/plane-test-macro/src/lib.rs
2221
RUN touch /work/plane/plane-tests/src/lib.rs
23-
RUN touch /work/plane/plane-dynamic/src/lib.rs
22+
RUN mkdir -p /work/common/src
23+
RUN touch /work/common/src/lib.rs
2424

25-
RUN cargo build -p plane --release --locked
2625
RUN cargo build -p plane-dynamic-proxy --release --locked
26+
RUN cargo build -p plane-common --release --locked
27+
RUN cargo build -p plane --release --locked
2728

2829
COPY .cargo .cargo
2930
COPY .git .git
3031
COPY plane plane
3132
COPY dynamic-proxy dynamic-proxy
33+
COPY common common
3234
RUN cargo build -p plane --release --locked
3335

3436
FROM gcr.io/distroless/cc-debian12

docker/build-quickstart.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
# Build the docker image
6+
7+
docker build ../ -f ./quickstart/Dockerfile -t plane-quickstart

docker/quickstart/Dockerfile

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# =======
22
# Builder
33
# =======
4-
FROM rust:bookworm AS builder
4+
FROM rust:1.83-bullseye AS builder
55

66
WORKDIR /work
77
COPY Cargo.toml /work/
@@ -10,7 +10,7 @@ COPY dynamic-proxy/Cargo.toml /work/dynamic-proxy/Cargo.toml
1010
COPY plane/Cargo.toml /work/plane/Cargo.toml
1111
COPY plane/plane-tests/plane-test-macro/Cargo.toml /work/plane/plane-tests/plane-test-macro/Cargo.toml
1212
COPY plane/plane-tests/Cargo.toml /work/plane/plane-tests/Cargo.toml
13-
COPY plane/plane-dynamic/Cargo.toml /work/plane/plane-dynamic/Cargo.toml
13+
COPY common/Cargo.toml /work/common/Cargo.toml
1414

1515
RUN mkdir /work/plane/src
1616
RUN echo "fn main() {}" > /work/plane/src/main.rs
@@ -20,18 +20,20 @@ RUN touch /work/dynamic-proxy/src/lib.rs
2020

2121
RUN mkdir -p /work/plane/plane-tests/src
2222
RUN mkdir -p /work/plane/plane-tests/plane-test-macro/src
23-
RUN mkdir -p /work/plane/plane-dynamic/src
23+
RUN mkdir -p /work/common/src
2424
RUN touch /work/plane/plane-tests/plane-test-macro/src/lib.rs
2525
RUN touch /work/plane/plane-tests/src/lib.rs
26-
RUN touch /work/plane/plane-dynamic/src/lib.rs
26+
RUN touch /work/common/src/lib.rs
2727

2828
RUN cargo build -p plane --release --locked
2929
RUN cargo build -p plane-dynamic-proxy --release --locked
30+
RUN cargo build -p plane --release --locked
3031

3132
COPY .cargo .cargo
3233
COPY .git .git
3334
COPY plane plane
3435
COPY dynamic-proxy dynamic-proxy
36+
COPY common common
3537
RUN cargo build -p plane --release --locked
3638

3739
# =======

0 commit comments

Comments
 (0)