Skip to content

Commit eaeab25

Browse files
committed
Move mls-test-cli from deps image to builder image
1 parent 434f7a8 commit eaeab25

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

build/ubuntu/Dockerfile.builder

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
ARG prebuilder=quay.io/wire/ubuntu20-prebuilder
22

3+
FROM rust:1.63 as mls-test-cli-builder
4+
5+
# compile mls-test-cli tool
6+
RUN cd /tmp && \
7+
git clone https://github.com/wireapp/mls-test-cli
8+
9+
RUN cd /tmp/mls-test-cli && RUSTFLAGS='-C target-feature=+crt-static' cargo install --bins --target x86_64-unknown-linux-gnu --path .
10+
311
FROM ${prebuilder}
12+
13+
COPY --from=mls-test-cli-builder /usr/local/cargo/bin/mls-test-cli /usr/bin/mls-test-cli
14+
415
WORKDIR /
516

617
# Download stack indices and compile/cache dependencies to speed up subsequent

build/ubuntu/Dockerfile.deps

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
FROM rust:1.63 as mls-test-cli-builder
2-
3-
# compile mls-test-cli tool
4-
RUN cd /tmp && \
5-
git clone https://github.com/wireapp/mls-test-cli && \
6-
cd mls-test-cli && \
7-
cargo build --release
8-
9-
101
FROM ubuntu:20.04 as cryptobox-builder
112

123
# compile cryptobox-c
@@ -25,10 +16,6 @@ FROM ubuntu:20.04
2516

2617
COPY --from=cryptobox-builder /tmp/cryptobox-c/target/release/libcryptobox.so /usr/lib
2718

28-
# FUTUREWORK: only copy mls-test-cli executables if we are building an
29-
# integration test image
30-
COPY --from=mls-test-cli-builder /tmp/mls-test-cli/target/release/mls-test-cli /usr/bin
31-
3219
RUN export DEBIAN_FRONTEND=noninteractive && \
3320
apt-get update && \
3421
apt-get install -y \

0 commit comments

Comments
 (0)