-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (23 loc) · 939 Bytes
/
Dockerfile
File metadata and controls
34 lines (23 loc) · 939 Bytes
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
FROM maven:3.6.3-jdk-8 as jarjar
WORKDIR /tmp
COPY ./pom.xml /tmp/pom.xml
RUN mvn clean install
COPY ./ /tmp
RUN mvn compile assembly:single
FROM openjdk:8-jdk-alpine
LABEL org.opencontainers.image.source="https://github.com/wbstack/queryservice-updater"
RUN addgroup -S updater && adduser -S updater -G updater \
&& apk add --no-cache bash
# Don't set a memory limit otherwise bad things happen (OOMs)
# TODO this was shamelessly copied from the current wmde/wikibase-docker wdqs image...
ENV MEMORY=""\
HEAP_SIZE="1g"\
HOST="0.0.0.0"\
WDQS_ENTITY_NAMESPACES="120,122"\
WIKIBASE_SCHEME="http"\
WIKIBASE_MAX_DAYS_BACK="90"
WORKDIR /wdqsup
COPY --chown=updater:updater --from=jarjar /tmp/target/wbstack-queryservice-0.3.6-0.1-jar-with-dependencies.jar /wdqsup/wbstackqs.jar
COPY --chown=updater:updater ./runUpdate.sh ./runUpdateWbStack.sh /wdqsup/
USER updater:updater
ENTRYPOINT /wdqsup/runUpdateWbStack.sh