Skip to content
This repository was archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
- use different config file (wikipedia.local.conf)
Browse files Browse the repository at this point in the history
- use logback.xml to write log files and control behavior
- use different java image (8u131-alpine)
- update mysql-connector to 6.0.6
  • Loading branch information
Bernhard Bermeitinger committed Jun 2, 2017
1 parent 26fb8bb commit 7056bdd
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 74 deletions.
3 changes: 2 additions & 1 deletion conf/wikipedia.conf
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
// add your modified config values here
// copy this file to wikipedia.local.conf
// and add your values there
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
wikipedia:
image: lambdacube/wikipedia-api:latest
ports:
- "8080:8080"
- "8088:8080"
volumes:
- ./logs:/usr/share/wikipedia/logs
- ./conf:/usr/share/wikipedia/conf
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

<groupId>org.lambda3.data.wikipedia</groupId>
<artifactId>wikipedia-api</artifactId>
<version>2.0.3</version>
<version>2.0.4</version>

<description>
Small library that accesses the English Wikipedia API to download articles.
Expand Down
4 changes: 2 additions & 2 deletions wikipedia-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<parent>
<groupId>org.lambda3.data.wikipedia</groupId>
<artifactId>wikipedia-api</artifactId>
<version>2.0.3</version>
<version>2.0.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -87,7 +87,7 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>6.0.5</version>
<version>6.0.6</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
Expand Down
2 changes: 1 addition & 1 deletion wikipedia-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<parent>
<groupId>org.lambda3.data.wikipedia</groupId>
<artifactId>wikipedia-api</artifactId>
<version>2.0.3</version>
<version>2.0.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion wikipedia-rest/src/main/resources/Dockerfile-wikipedia
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openjdk:8-jre
FROM openjdk:8u131-jre-alpine

WORKDIR /usr/share/wikipedia

Expand Down
66 changes: 0 additions & 66 deletions wikipedia-rest/src/main/resources/logback.xml

This file was deleted.

2 changes: 1 addition & 1 deletion wikipedia-rest/src/main/resources/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cmd="java -jar -server ${JAVA_OPTS} \
-Djava.net.preferIPv4Stack=true \
-Dfile.encoding=UTF-8 \
-Dlogback.configurationFile=${CONFDIR}/logback.xml \
-Dconfig.file=${CONFDIR}/wikipedia.conf \
-Dconfig.file=${CONFDIR}/wikipedia.local.conf \
${LIBDIR}/${project.artifactId}-${project.version}.jar"

exec ${cmd}

0 comments on commit 7056bdd

Please sign in to comment.