forked from kazunobu-fujii/docker-opengrok
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
26 lines (24 loc) · 989 Bytes
/
Dockerfile
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
FROM tomcat:9-alpine
LABEL maintainer="[email protected]"
ARG OPENGROK_VERSION=1.3.3
ENV OPENGROK_DIRECTORY /usr/opengrok
ENV OPENGROK_INSTANCE_BASE /var/opengrok
ENV PATH="$PATH:/usr/opengrok/bin"
RUN apk add --no-cache git subversion mercurial
RUN apk add --no-cache --virtual .ctag-build-deps gcc g++ make automake autoconf \
&& cd / \
&& git clone --depth 1 https://github.com/universal-ctags/ctags.git \
&& cd /ctags/ \
&& ./autogen.sh \
&& ./configure \
&& make \
&& make install \
&& rm -rf /ctags \
&& apk del .ctag-build-deps
RUN apk add --no-cache --virtual .opengrok-install-deps ca-certificates openssl \
&& cd / \
&& wget -O - https://github.com/oracle/opengrok/releases/download/$OPENGROK_VERSION/opengrok-$OPENGROK_VERSION.tar.gz | tar zxvf - \
&& mv opengrok-* $OPENGROK_DIRECTORY \
&& apk del .opengrok-install-deps \
&& mkdir -p $OPENGROK_INSTANCE_BASE \
&& OPENGROK_TOMCAT_BASE=$CATALINA_HOME $OPENGROK_DIRECTORY/bin/OpenGrok deploy