Skip to content

Commit dd2cb66

Browse files
committed
Switch to external build scripts for some deps
1 parent 178336b commit dd2cb66

File tree

2 files changed

+4
-23
lines changed

2 files changed

+4
-23
lines changed

continuous_integration/Dockerfile-debian11

-7
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ RUN sed -ie "s|DEFAULT_URL = 'http://nltk.googlecode.com/svn/trunk/nltk_data/ind
3535
RUN python3 -m nltk.downloader -d nltk_data dependency_treebank
3636
RUN cat nltk_data/corpora/dependency_treebank/wsj_*.dp | grep -v "^$" > nltk_data/corpora/dependency_treebank/nltk-ptb.dp
3737

38-
#RUN wget http://osmot.cs.cornell.edu/svm_light/current/svm_light.tar.gz -q
39-
#WORKDIR /svm_light
40-
#RUN tar xzf ../svm_light.tar.gz
41-
#RUN make
42-
#RUN cp svm_classify svm_learn /usr/bin
43-
#RUN rm -Rf /svm_light
44-
4538
WORKDIR /
4639
COPY continuous_integration/svmtool.sh continuous_integration/svmtool-cpp.sh continuous_integration/qhttpserver.sh /
4740
RUN /svmtool.sh $GITHUB_TOKEN

continuous_integration/Dockerfile-travis-ubuntu20.04

+4-16
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,11 @@ RUN sed -ie "s|DEFAULT_URL = 'http://nltk.googlecode.com/svn/trunk/nltk_data/ind
3333
RUN python3 -m nltk.downloader -d nltk_data dependency_treebank
3434
RUN cat nltk_data/corpora/dependency_treebank/wsj_*.dp | grep -v "^$" > nltk_data/corpora/dependency_treebank/nltk-ptb.dp
3535

36-
RUN wget http://osmot.cs.cornell.edu/svm_light/current/svm_light.tar.gz
37-
WORKDIR /svm_light
38-
RUN tar xzf ../svm_light.tar.gz
39-
RUN make
40-
RUN cp svm_classify svm_learn /usr/bin
41-
RUN rm -Rf /svm_light
42-
43-
WORKDIR /
44-
RUN curl -vLJ -H 'Accept: application/octet-stream' $(curl -s https://api.github.com/repos/aymara/SVMTool/releases/latest?access_token=$GITHUB_TOKEN | grep browser_download_url |grep '.tgz"' | head -n 1 | cut -d '"' -f 4)?access_token=$GITHUB_TOKEN | tar xvz
45-
WORKDIR /SVMTool-1.3.1
46-
RUN perl Makefile.PL && make && make install
47-
4836
WORKDIR /
49-
RUN TEMP_DEB="$(mktemp)" && curl -vLJ -H 'Accept: application/octet-stream' $(curl -s https://api.github.com/repos/aymara/qhttpserver/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"
50-
51-
52-
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"
37+
COPY continuous_integration/svmtool.sh continuous_integration/svmtool-cpp.sh continuous_integration/qhttpserver.sh /
38+
RUN /svmtool.sh $GITHUB_TOKEN
39+
RUN /svmtool-cpp.sh $GITHUB_TOKEN
40+
RUN /qhttpserver.sh $GITHUB_TOKEN
5341

5442
RUN mkdir -p /src/
5543
RUN git clone --branch=$BRANCH --recurse-submodules https://${GITHUB_TOKEN}@github.com/aymara/lima /src/lima

0 commit comments

Comments
 (0)