2 ENV PYLUCENE_DEB=python-lucene_4.10.1+osdn-1_amd64.deb
4 # install basic packages
6 RUN apt-get install -y vim-nox lv less
8 # install mojolicious related packages
9 RUN apt-get install -y libmojolicious-perl libjs-bootstrap libdbd-mysql libdbi-perl \
10 libdbd-mysql-perl libtemplate-perl node-less libcrypt-openssl-random-perl \
11 libemail-valid-perl tinymce libredis-perl libhtml-tidy-perl liburi-perl \
12 libyaml-perl libdatetime-format-mysql-perl libdatetime-format-iso8601-perl \
13 libxml-feed-perl libcarp-always-perl
15 # install slash's dependency
16 RUN apt-get install -y libdate-calc-perl libdatetime-perl liburi-perl libjson-perl \
17 libcache-memcached-fast-perl libdata-javascript-anon-perl libwww-perl
19 # install python and lucene packages
20 RUN apt-get install -y pylucene python-mysql.connector liblucene4.10-java libasm-java python-yaml
22 # install jenkins related packaged
23 RUN apt-get install -y openjdk-8-jdk openssh-server
25 COPY files/jenkins.pub /root/.ssh/authorized_keys
26 RUN chmod 600 /root/.ssh/authorized_keys
28 # install custom pylucene package
29 COPY files/$PYLUCENE_DEB /tmp
30 RUN dpkg -i /tmp/$PYLUCENE_DEB
33 COPY files/newslash.cnf /etc/mysql/conf.d/
36 RUN mkdir -p /run/sshd
37 CMD ["/usr/sbin/sshd", "-D"]