File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ WORKDIR /opengrok-source
5
5
6
6
RUN apt-get update && apt-get install -y python3 python3-venv
7
7
RUN mvn -f pom.xml clean package -DskipTests=true
8
-
8
+ # find most recent package file
9
9
RUN cp `ls -t distribution/target/*.tar.gz | head -n1 |awk '{printf("%s",$0)}'` /opengrok.tar.gz
10
10
11
11
FROM tomcat:9-jre8
Original file line number Diff line number Diff line change 2
2
3
3
LOCKFILE=/var/run/opengrok-indexer
4
4
URI=" http://localhost:8080"
5
+ # $OPTS an be overwriteb by environment variable
5
6
OPS=${INDEXER_FLAGS:= ' -H -P -S -G' }
6
7
7
8
if [ -f " $LOCKFILE " ]; then
@@ -25,7 +26,7 @@ opengrok-indexer \
25
26
--leadingWildCards on \
26
27
-W /var/opengrok/etc/configuration.xml \
27
28
-U " $URI " \
28
- $INDEXER_FLAGS \
29
+ $OPS \
29
30
$INDEXER_OPT " $@ "
30
31
date +" %F %T Indexing finished"
31
32
You can’t perform that action at this time.
0 commit comments