forked from hwchiu/docker-lxr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (40 loc) · 1.22 KB
/
Copy pathDockerfile
File metadata and controls
50 lines (40 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
######
FROM ubuntu:16.04
MAINTAINER sppsorrg@gmail.com
RUN echo 'mysql-server mysql-server/root_password password lxr' | debconf-set-selections && \
echo 'mysql-server mysql-server/root_password_again password lxr' | debconf-set-selections
RUN apt-get update && \
apt-get install -y perl &&\
apt-get install -y git &&\
apt-get install -y exuberant-ctags &&\
apt-get install -y mysql-server &&\
apt-get install -y apache2 &&\
apt-get install -y libapache2-mod-perl2 &&\
apt-get install -y libmysqlclient-dev &&\
apt-get install -y gcc &&\
apt-get install -y make &&\
apt-get install -y flex &&\
apt-get install -y expect &&\
cpan DBI &&\
cpan File::MMagic &&\
cpan DBD::mysql
WORKDIR /glimpse
RUN git clone https://github.com/gvelez17/glimpse &&\
cd glimpse &&\
./configure &&\
make &&\
make install
WORKDIR /
RUN apt-get install -y curl &&\
curl -L https://sourceforge.net/projects/lxr/files/stable/lxr-2.2.1.tgz > lxr.tgz &&\
tar -xvf lxr.tgz &&\
mv lxr-2.2.1 lxr
WORKDIR /lxr
ADD custom.d /lxr/custom.d
ADD scripts/expect_initdb /lxr/expect_initdb
ADD custom.d/lxr.conf /lxr
ADD .htaccess /lxr/.htaccess
EXPOSE 8001
COPY scripts/entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/bin/bash"]