-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathfireworks-generator.dockerfile
More file actions
37 lines (29 loc) · 1.27 KB
/
fireworks-generator.dockerfile
File metadata and controls
37 lines (29 loc) · 1.27 KB
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
35
36
37
ARG RELEASE_VERSION=Release74
FROM maven:3.6.3-jdk-8 AS builder
RUN mkdir /gitroot
ENV FIREWORKS_SRC_VERSION=1da5741727594bb07e445c32e417aade89f1a1f4
WORKDIR /gitroot/
RUN git clone https://github.com/reactome-pwp/fireworks-layout.git
WORKDIR /gitroot/fireworks-layout
RUN git checkout $FIREWORKS_SRC_VERSION
RUN mvn --no-transfer-progress clean compile package -DskipTests && ls -lht ./target
# Now, rebase on the Reactome Neo4j image
FROM reactome/graphdb:${RELEASE_VERSION} as graphdb
ARG NEO4J_USER=neo4j
ENV NEO4J_USER=$NEO4J_USER
ARG NEO4J_PASSWORD=neo4j-password
ENV NEO4J_PASSWORD=$NEO4J_PASSWORD
ENV NEO4J_AUTH $NEO4J_USER/$NEO4J_PASSWORD
# Neo4j extension script setting
ENV EXTENSION_SCRIPT /data/neo4j-init.sh
COPY --from=builder /gitroot/fireworks-layout/target/fireworks-jar-with-dependencies.jar /fireworks/fireworks.jar
COPY --from=builder /gitroot/fireworks-layout/config /fireworks/config
COPY ./wait-for.sh /wait-for.sh
COPY ./run_fireworks_generator.sh /run_fireworks_generator.sh
RUN chmod a+x /run_fireworks_generator.sh
RUN mkdir /fireworks-json-files
RUN /run_fireworks_generator.sh
FROM alpine:3.8
COPY --from=graphdb /fireworks-json-files /fireworks-json-files
COPY --from=graphdb /fireworks/fireworks.log /fireworks/fireworks.log
RUN ls -lht /fireworks-json-files