OSDN Git Service

test-container: update Dockerfile for pylucene environment
authorhylom <hylom@users.sourceforge.jp>
Tue, 6 Feb 2018 10:43:54 +0000 (19:43 +0900)
committerhylom <hylom@users.sourceforge.jp>
Tue, 6 Feb 2018 10:46:51 +0000 (19:46 +0900)
test-container/Dockerfile

index 7e1ed06..0c53395 100644 (file)
@@ -1,20 +1,31 @@
 FROM debian:stretch
 MAINTAINER hirom@osdn.jp
 
+ENV PYLUCENE_DEB=python-lucene_4.10.1+osdn-1_amd64.deb
+
+# install basic packages
 RUN apt-get update -y
 RUN apt-get install -y vim-nox lv less 
+
+# install mojolicious related packages
 RUN apt-get install -y libmojolicious-perl libjs-bootstrap libdbd-mysql libdbi-perl \
     libdbd-mysql-perl libtemplate-perl node-less libcrypt-openssl-random-perl \
     libemail-valid-perl tinymce libredis-perl libhtml-tidy-perl liburi-perl \
     libyaml-perl libdatetime-format-mysql-perl libdatetime-format-iso8601-perl \
-    libxml-feed-perl
-RUN apt-get install -y libcarp-always-perl
+    libxml-feed-perl libcarp-always-perl
 
-# slash's dependency
+# install slash's dependency
 RUN apt-get install -y libdate-calc-perl libdatetime-perl liburi-perl libjson-perl \
     libcache-memcached-fast-perl libdata-javascript-anon-perl libwww-perl
 
-COPY files/newslash.cnf /etc/mysql/conf.d/
+# install python and lucene packages
+RUN apt-get install -y pylucene python-mysql.connector liblucene4.10-java libasm-java
+RUN apt-get install -y python-yaml
 
+# install custom pylucene package
+COPY files/$PYLUCENE_DEB /tmp
+RUN dpkg -i /tmp/$PYLUCENE_DEB
+
+COPY files/newslash.cnf /etc/mysql/conf.d/
 EXPOSE 80