Skip to content

Commit 9f52950

Browse files
committed
Add lima deep models install to Debian11 docker
1 parent a10ec8d commit 9f52950

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

appveyor.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ for:
1616
services:
1717
- docker
1818
build_script:
19-
- docker build --tag debian11 --build-arg JOB_NUMBER=1 --build-arg BRANCH=master --build-arg USE_TENSORFLOW="true" -f ./continuous_integration/Dockerfile-debian11 .
19+
- docker build --tag debian11 --build-arg BRANCH=master --build-arg USE_TENSORFLOW="true" -f ./continuous_integration/Dockerfile-debian11 .
2020
- docker create -ti --name dummy debian11 bash
2121
- docker cp dummy:/src/lima/build ./
2222
- docker rm -f dummy
@@ -43,7 +43,7 @@ for:
4343
services:
4444
- docker
4545
build_script:
46-
- docker build --tag travis-ubuntu20.04 --build-arg JOB_NUMBER=1 --build-arg BRANCH=master --build-arg USE_TENSORFLOW="true" -f ./continuous_integration/Dockerfile-travis-ubuntu20.04 .
46+
- docker build --tag travis-ubuntu20.04 --build-arg BRANCH=master --build-arg USE_TENSORFLOW="true" -f ./continuous_integration/Dockerfile-travis-ubuntu20.04 .
4747
- docker create -ti --name dummy travis-ubuntu20.04 bash
4848
- docker cp dummy:/src/lima/build ./
4949
- docker rm -f dummy

continuous_integration/Dockerfile-debian11

+11-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ ENV LANGUAGE en_US:en
99
ENV LC_ALL en_US.UTF-8
1010
RUN locale
1111

12-
ARG BRANCH
12+
ARG BRANCH=master
13+
ARG USE_TENSORFLOW="true"
1314
ARG GITHUB_TOKEN
14-
ARG JOB_NUMBER
1515
ARG LIMA_DISABLE_FSW_TESTING
1616
ARG LIMA_DISABLE_CPACK_DEBIAN_PACKAGE_SHLIBDEPS
1717
ARG NLTK_PTB_DP_FILE
@@ -29,7 +29,7 @@ RUN wget https://launchpad.net/~limapublisher/+archive/ubuntu/ppa/+files/libtens
2929

3030
# Install recent cmake
3131
WORKDIR /cmake_build
32-
RUN wget --no-check-certificate https://cmake.org/files/v3.16/cmake-3.16.4-Linux-x86_64.sh
32+
RUN wget --no-check-certificate https://cmake.org/files/v3.16/cmake-3.16.4-Linux-x86_64.sh -q
3333
RUN sh cmake-3.16.4-Linux-x86_64.sh --prefix=/usr --exclude-subdir --skip-license
3434
RUN cmake --version
3535
WORKDIR /
@@ -87,3 +87,11 @@ RUN /bin/bash -c "set -o pipefail && tvx --language=eng --language=fre test-fre.
8787
# install github-release to be able to deploy packages
8888
RUN wget https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2 -q && tar xjf linux-amd64-github-release.tar.bz2 && cp bin/linux/amd64/github-release /usr/bin
8989

90+
# install python packages necessary to use the language resources install script
91+
RUN apt-get install -y python3-pip -qq
92+
RUN /bin/bash -c "if [ \"$USE_TENSORFLOW\" = true ] ; then pip3 install unix_ar requests tqdm ; fi"
93+
94+
# install English and French UD models
95+
RUN /bin/bash -c "if [ \"$USE_TENSORFLOW\" = true ] ; then lima_models.py -l english ; fi"
96+
RUN /bin/bash -c "if [ \"$USE_TENSORFLOW\" = true ] ; then lima_models.py -l french ; fi"
97+

0 commit comments

Comments
 (0)