OSDN Git Service

test-container: merge svc settings to k8s-ns-searchd.yaml
[newslash/newslash.git] / test-container / Dockerfile_k8s
1 FROM debian:stretch
2 ENV PYLUCENE_DEB=python-lucene_4.10.1+osdn-1_amd64.deb
3
4 # install basic packages
5 RUN apt-get update -y
6 RUN apt-get install -y vim-nox lv less 
7
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
14
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
18
19 # install python and lucene packages
20 RUN apt-get install -y pylucene python-mysql.connector liblucene4.10-java libasm-java python-yaml
21
22 # install jenkins related packaged
23 RUN apt-get install -y openjdk-8-jdk openssh-server
24 EXPOSE 22
25 COPY files/jenkins.pub /root/.ssh/authorized_keys
26 RUN chmod 600 /root/.ssh/authorized_keys
27
28 # install custom pylucene package
29 COPY files/$PYLUCENE_DEB /tmp
30 RUN dpkg -i /tmp/$PYLUCENE_DEB
31
32 # copy config file
33 COPY files/newslash.cnf /etc/mysql/conf.d/
34
35
36 RUN mkdir -p /run/sshd
37 CMD ["/usr/sbin/sshd", "-D"]
38 EXPOSE 80
39