Skip to content

Commit

Permalink
fix cargo-chef usage
Browse files Browse the repository at this point in the history
  • Loading branch information
camshaft committed Jan 13, 2024
1 parent 054542e commit b72ebe3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion quic/s2n-quic-qns/etc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ RUN set -eux; \
cargo chef cook --recipe-path recipe.json; \
fi;

# restore the correct sources - cargo-chef replaces them with empty files
COPY --from=sources /app/common /app/common
COPY --from=sources /app/quic /app/quic

# build runner
RUN set -eux; \
source /root/.cargo/env; \
Expand Down Expand Up @@ -124,7 +128,8 @@ RUN set -eux; \
ldd /usr/bin/s2n-quic-qns; \
# ensure the binary works \
s2n-quic-qns --help; \
s2n-quic-qns-release --help; \
s2n-quic-qns --help | grep interop; \
s2n-quic-qns-release --help | grep interop; \
echo done

###############
Expand Down Expand Up @@ -157,5 +162,6 @@ RUN set -eux; \
ldd /usr/bin/s2n-quic-qns; \
# ensure the binary works \
s2n-quic-qns --help; \
s2n-quic-qns --help | grep interop; \
echo done

0 comments on commit b72ebe3

Please sign in to comment.