File tree 2 files changed +12
-8
lines changed
2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,11 @@ ENV LANGUAGE en_US:en
11
11
ENV LC_ALL en_US.UTF-8
12
12
RUN locale
13
13
14
- ARG SOURCE_BRANCH
15
14
ARG GITHUB_TOKEN
16
- ARG JOB_NUMBER
17
15
ARG LIMA_DISABLE_FSW_TESTING
18
16
ARG LIMA_DISABLE_CPACK_DEBIAN_PACKAGE_SHLIBDEPS
19
17
ARG NLTK_PTB_DP_FILE
20
- ARG USE_TENSORFLOW
18
+ ARG USE_TENSORFLOW="true"
21
19
22
20
RUN apt-get install -y software-properties-common; add-apt-repository -y ppa:limapublisher/ppa && apt-get update && apt-get install -y libtensorflow-for-lima-dev
23
21
@@ -48,7 +46,7 @@ RUN TEMP_DEB="$(mktemp)" && curl -vLJ -H 'Accept: application/octet-stream' $(c
48
46
RUN TEMP_DEB="$(mktemp)" && curl -vLJ -H 'Accept: application/octet-stream' $(curl -s https://api.github.com/repos/aymara/svmtool-cpp/releases/latest?access_token=$GITHUB_TOKEN | grep browser_download_url | grep ubuntu18 | grep '.deb"' | head -n 1 | cut -d '"' -f 4)?access_token=$GITHUB_TOKEN -o "$TEMP_DEB" && dpkg -i "$TEMP_DEB"
49
47
50
48
RUN mkdir -p /src/
51
- RUN git clone --recurse-submodules https://github.com/aymara/lima /src/lima
49
+ RUN git clone --branch=$BRANCH -- recurse-submodules https://github.com/aymara/lima /src/lima
52
50
WORKDIR /src/lima
53
51
ARG CACHEBUST=1
54
52
RUN git pull
@@ -85,5 +83,12 @@ RUN /bin/bash -c "set -o pipefail && tva --language=fre test-fre.default.xml tes
85
83
WORKDIR /usr/share/apps/lima/tests/xmlreader
86
84
RUN /bin/bash -c "set -o pipefail && tvx --language=eng --language=fre test-fre.xmlreader.xml 2>&1 | tee tvx-fre.log"
87
85
86
+ # install python packages necessary to use the language resources install script
87
+ RUN /bin/bash -c "if [ \"$USE_TENSORFLOW\" = true ] ; then pip3 install unix_ar requests tqdm ; fi"
88
+
89
+ # install English and French UD models
90
+ RUN /bin/bash -c "if [ \"$USE_TENSORFLOW\" = true ] ; then lima_models.py -l english ; fi"
91
+ RUN /bin/bash -c "if [ \"$USE_TENSORFLOW\" = true ] ; then lima_models.py -l french ; fi"
92
+
88
93
RUN echo $LIMA_RESOURCES
89
94
ENTRYPOINT ["limaserver"]
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ FROM ubuntu:20.04
3
3
ENV DEBIAN_FRONTEND=noninteractive
4
4
5
5
# Use gcc
6
- #RUN rm -rf /var/lib/apt/lists/* && apt-get clean && apt-get update && apt-get install -y locales unzip apt-utils lsb-release git gcc g++ make cmake cmake-data curl python3-nltk gawk wget python3 python3-pip ninja-build qt5-default qtbase5-dev-tools libqt5xmlpatterns5-dev libqt5qml5 qtdeclarative5-dev qml-module-qtquick-extras qml-module-qtquick-controls qml-module-qtquick-layouts qml-module-qtquick2 libenchant-dev libtre-dev libboost-all-dev nodejs npm qml-module-qtquick-controls2 qml-module-qtquick-dialogs qml-module-qtquick-privatewidgets qml-module-qtquick-scene3d qml-module-qtquick-templates2 qml-module-qtquick-virtualkeyboard qml-module-qtquick-window2 qml-module-qtquick-xmllistmodel libicu-dev libeigen3-dev -qq
6
+ #RUN rm -rf /var/lib/apt/lists/* && apt-get clean && apt-get update && apt-get install -y locales unzip bash coreutils apt-utils lsb-release git gcc g++ build-essential make cmake cmake-data curl python3-nltk gawk wget python3 python3-pip ninja-build qt5-default qtbase5-dev-tools libqt5xmlpatterns5-dev libqt5qml5 qtdeclarative5-dev qml-module-qtquick-extras qml-module-qtquick-controls qml-module-qtquick-layouts qml-module-qtquick2 libenchant-dev libtre-dev libboost-all-dev nodejs npm qml-module-qtquick-controls2 qml-module-qtquick-dialogs qml-module-qtquick-privatewidgets qml-module-qtquick-scene3d qml-module-qtquick-templates2 qml-module-qtquick-virtualkeyboard qml-module-qtquick-window2 qml-module-qtquick-xmllistmodel libicu-dev libeigen3-dev -qq
7
7
8
8
# Use clang
9
9
RUN rm -rf /var/lib/apt/lists/* && apt-get clean && apt-get update && apt-get install -y locales unzip bash coreutils apt-utils lsb-release git llvm build-essential clang clang-tidy clang-tools make cmake cmake-data curl python3-nltk gawk wget python3 python3-pip ninja-build qt5-default qtbase5-dev-tools libqt5xmlpatterns5-dev libqt5qml5 qtdeclarative5-dev qml-module-qtquick-extras qml-module-qtquick-controls qml-module-qtquick-layouts qml-module-qtquick2 libenchant-dev libtre-dev libboost-all-dev nodejs npm qml-module-qtquick-controls2 qml-module-qtquick-dialogs qml-module-qtquick-privatewidgets qml-module-qtquick-scene3d qml-module-qtquick-templates2 qml-module-qtquick-virtualkeyboard qml-module-qtquick-window2 qml-module-qtquick-xmllistmodel libicu-dev libeigen3-dev -qq
@@ -17,13 +17,12 @@ ENV LANGUAGE en_US:en
17
17
ENV LC_ALL en_US.UTF-8
18
18
RUN locale
19
19
20
- ARG BRANCH
20
+ ARG BRANCH=master
21
21
ARG GITHUB_TOKEN
22
- ARG JOB_NUMBER
23
22
ARG LIMA_DISABLE_FSW_TESTING
24
23
ARG LIMA_DISABLE_CPACK_DEBIAN_PACKAGE_SHLIBDEPS
25
24
ARG NLTK_PTB_DP_FILE
26
- ARG USE_TENSORFLOW
25
+ ARG USE_TENSORFLOW="true"
27
26
28
27
RUN /bin/bash -c "if [ \"$USE_TENSORFLOW\" = true ] ; then apt-get install -y software-properties-common; add-apt-repository -y ppa:limapublisher/ppa; apt-get update; apt-get install -y libtensorflow-for-lima-dev ; fi"
29
28
You can’t perform that action at this time.
0 commit comments