forked from Netflix/mantis-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·33 lines (26 loc) · 1.8 KB
/
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
27
28
29
30
31
32
33
FROM java:8
MAINTAINER Mantis Developers <[email protected]>
COPY ./build/install/mantis-api/bin/* /apps/nfmantisapi/bin/
COPY ./build/install/mantis-api/lib/* /apps/nfmantisapi/lib/
COPY ./conf/local.properties /apps/nfmantisapi/conf/
RUN mkdir -p /apps/nfmantisapi/mantisArtifacts
RUN mkdir -p /logs/mantisapi
# OPTIONAL - To bootstrap mantis api with job artifacts. Assumes mantis-examples have been built.
# copy examples
COPY ./mantis-examples-twitter-sample-0.1.0-SNAPSHOT.zip /apps/nfmantisapi/mantisArtifacts/
COPY ./mantis-examples-twitter-sample-0.1.0-SNAPSHOT.json /apps/nfmantisapi/mantisArtifacts/
COPY ./mantis-examples-sine-function-0.1.0-SNAPSHOT.zip /apps/nfmantisapi/mantisArtifacts/
COPY ./mantis-examples-sine-function-0.1.0-SNAPSHOT.json /apps/nfmantisapi/mantisArtifacts/
COPY ./mantis-examples-groupby-sample-0.1.0-SNAPSHOT.zip /apps/nfmantisapi/mantisArtifacts/
COPY ./mantis-examples-groupby-sample-0.1.0-SNAPSHOT.json /apps/nfmantisapi/mantisArtifacts/
COPY ./mantis-examples-synthetic-sourcejob-0.1.0-SNAPSHOT.zip /apps/nfmantisapi/mantisArtifacts/
COPY ./mantis-examples-synthetic-sourcejob-0.1.0-SNAPSHOT.json /apps/nfmantisapi/mantisArtifacts/
COPY ./mantis-examples-jobconnector-sample-0.1.0-SNAPSHOT.zip /apps/nfmantisapi/mantisArtifacts/
COPY ./mantis-examples-jobconnector-sample-0.1.0-SNAPSHOT.json /apps/nfmantisapi/mantisArtifacts/
# copy source jobs
COPY ./mantis-source-job-kafka-1.3.0-SNAPSHOT.zip /apps/nfmantisapi/mantisArtifacts/
COPY ./mantis-source-job-kafka-1.3.0-SNAPSHOT.json /apps/nfmantisapi/mantisArtifacts/
COPY ./mantis-source-job-publish-1.3.0-SNAPSHOT.zip /apps/nfmantisapi/mantisArtifacts/
COPY ./mantis-source-job-publish-1.3.0-SNAPSHOT.json /apps/nfmantisapi/mantisArtifacts/
WORKDIR /apps/nfmantisapi
ENTRYPOINT [ "bin/mantis-api", "-p", "conf/local.properties" ]