• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

debianのpyluceneパッケージをkuromoji付きでビルドする設定ファイル


Commit MetaInfo

修訂787709ad0f6d9005a99fcfd76fda523b40e07d2f (tree)
時間2018-09-19 19:44:13
作者hylom <hylom@user...>
Commiterhylom

Log Message

fix files to work correctly

Change Summary

差異

--- a/Dockerfile
+++ b/Dockerfile
@@ -12,10 +12,10 @@ RUN apt-get install -y debhelper dh-python jcc default-jdk ant python-setuptools
1212 RUN apt-get install -y devscripts
1313
1414 COPY $PYLUCENE_TARBALL /root/
15-RUN cd /root/ && tar xvzf $PYLUCENE_TARBALL
15+RUN cd /root/ && tar xvzf $(basename $PYLUCENE_TARBALL)
1616
1717 COPY $PYLUCENE_PATCH /root/
18-RUN cd /root/pylucene-$PYLUCENE_VERSION && tar xvJf /root/$PYLUCENE_PATCH
18+RUN cd /root/pylucene-$PYLUCENE_VERSION && tar xvJf /root/$(basename $PYLUCENE_PATCH)
1919
2020 COPY $FILES/enable_kuromoji.patch /root/pylucene-$PYLUCENE_VERSION/debian/patches/
2121 RUN echo "enable_kuromoji.patch" >> /root/pylucene-$PYLUCENE_VERSION/debian/patches/series
@@ -24,6 +24,6 @@ COPY $FILES/control.osdn /root/pylucene-$PYLUCENE_VERSION/debian/control
2424 COPY $FILES/changelog.osdn /root/pylucene-$PYLUCENE_VERSION/debian/changelog
2525
2626 COPY $FILES/entrypoint.sh /
27-RUN chmod 755 /entry-point.sh
28-ENTRYPOINT ["/entry-point.sh"]
27+RUN chmod 755 /entrypoint.sh
28+ENTRYPOINT ["/entrypoint.sh"]
2929
--- a/files/entrypoint.sh
+++ b/files/entrypoint.sh
@@ -1,12 +1,6 @@
11 #!/bin/bash
22 set -eo pipefail
33
4-if [ "$1" != "" ]; then
5- exec "$@"
6-else
7- build
8-fi
9-
104 build () {
115 cd /root/pylucene-*/
126 debuild -b -us -uc
@@ -14,3 +8,9 @@ build () {
148 cp *osdn-* /host/
159 }
1610
11+if [ "$1" != "" ]; then
12+ exec "$@"
13+else
14+ build
15+fi
16+