debianのpyluceneパッケージをkuromoji付きでビルドする設定ファイル
修訂 | 787709ad0f6d9005a99fcfd76fda523b40e07d2f (tree) |
---|---|
時間 | 2018-09-19 19:44:13 |
作者 | hylom <hylom@user...> |
Commiter | hylom |
fix files to work correctly
@@ -12,10 +12,10 @@ RUN apt-get install -y debhelper dh-python jcc default-jdk ant python-setuptools | ||
12 | 12 | RUN apt-get install -y devscripts |
13 | 13 | |
14 | 14 | COPY $PYLUCENE_TARBALL /root/ |
15 | -RUN cd /root/ && tar xvzf $PYLUCENE_TARBALL | |
15 | +RUN cd /root/ && tar xvzf $(basename $PYLUCENE_TARBALL) | |
16 | 16 | |
17 | 17 | 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) | |
19 | 19 | |
20 | 20 | COPY $FILES/enable_kuromoji.patch /root/pylucene-$PYLUCENE_VERSION/debian/patches/ |
21 | 21 | 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 | ||
24 | 24 | COPY $FILES/changelog.osdn /root/pylucene-$PYLUCENE_VERSION/debian/changelog |
25 | 25 | |
26 | 26 | 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"] | |
29 | 29 |
@@ -1,12 +1,6 @@ | ||
1 | 1 | #!/bin/bash |
2 | 2 | set -eo pipefail |
3 | 3 | |
4 | -if [ "$1" != "" ]; then | |
5 | - exec "$@" | |
6 | -else | |
7 | - build | |
8 | -fi | |
9 | - | |
10 | 4 | build () { |
11 | 5 | cd /root/pylucene-*/ |
12 | 6 | debuild -b -us -uc |
@@ -14,3 +8,9 @@ build () { | ||
14 | 8 | cp *osdn-* /host/ |
15 | 9 | } |
16 | 10 | |
11 | +if [ "$1" != "" ]; then | |
12 | + exec "$@" | |
13 | +else | |
14 | + build | |
15 | +fi | |
16 | + |