Unverified Commit 80bfb28b authored by moto's avatar moto Committed by GitHub
Browse files

Bake libsox in test base Docker image (#739)

In #728, linux unit test switches to libsox provided by apt.
For CPU jobs this is fine because all the job steps share the same Docker container,
but on CPU job, each job step runs a script in a new Docker container, so
libsox installed in a step is not available to the subsequent steps.

To fix this, this PR moves the installation of libsox and sox to Docker build.
parent d9e6ce45
...@@ -55,6 +55,9 @@ RUN apt update && apt install -y \ ...@@ -55,6 +55,9 @@ RUN apt update && apt install -y \
curl \ curl \
make \ make \
file \ file \
sox \
libsox-dev \
libsox-fmt-all \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
COPY --from=builder /kaldi /kaldi COPY --from=builder /kaldi /kaldi
COPY --from=builder /third_party /third_party COPY --from=builder /third_party /third_party
......
...@@ -35,6 +35,3 @@ conda env update --file "${this_dir}/environment.yml" --prune ...@@ -35,6 +35,3 @@ conda env update --file "${this_dir}/environment.yml" --prune
# 4. Build codecs # 4. Build codecs
# build_tools/setup_helpers/build_third_party.sh # build_tools/setup_helpers/build_third_party.sh
# 4. Install codecs
apt update -q
apt install -y -q sox libsox-dev libsox-fmt-all
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment