From 448e20b2b0a8f25755234df634dc84e49d56100a Mon Sep 17 00:00:00 2001 From: Dylan Reid Date: Tue, 22 Jan 2019 02:33:21 +0000 Subject: kokoro: Add adhd repo A future change will allow crosvm to play audio through cras. To do that it needs to use some crates that live in the adhd repository. Add the repository to the kokoro image at a path where Cargo can find the crates. Change-Id: I1542090ba0db6fd0f3ac60dcc2e7bb35502a4944 Signed-off-by: Dylan Reid Reviewed-on: https://chromium-review.googlesource.com/1429311 Commit-Ready: Chih-Yang Hsia Tested-by: kokoro Reviewed-by: Chih-Yang Hsia --- kokoro/Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kokoro/Dockerfile b/kokoro/Dockerfile index 44c63aa..311b134 100644 --- a/kokoro/Dockerfile +++ b/kokoro/Dockerfile @@ -109,6 +109,14 @@ RUN rm -r /scratch /usr/bin/meson # The manual installation of shared objects requires an ld.so.cache refresh. RUN ldconfig +# Pull down repositories that crosvm depends on to cros checkout-like locations. +ENV CROS_ROOT=/ +ENV THIRD_PARTY_ROOT=$CROS_ROOT/third_party +RUN mkdir -p $THIRD_PARTY_ROOT + +# Pull the cras library for audio access. +RUN git clone https://chromium.googlesource.com/chromiumos/third_party/adhd $THIRD_PARTY_ROOT/adhd + # The /build directory is used so that the bind mounted /src volume does not get scribbled on. ENV CARGO_TARGET_DIR=/build RUN mkdir -p $CARGO_TARGET_DIR -- cgit 1.4.1