-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
35 lines (27 loc) · 1.05 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
34
35
FROM gradle:5.6.4
#FROM gradle
### Development Image
ENV CARNIVAL_HOME /usr/carnival_home
ENV APOC_HOME /usr/Neo4j/plugins
ENV APOC_VERSION 3.4.0.7
# Install linux utils
RUN apt-get update --fix-missing && apt-get install -y \
dos2unix rename sed\
--no-install-recommends && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# install APOC
RUN mkdir -p ${APOC_HOME}
ADD "https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/${APOC_VERSION}/apoc-${APOC_VERSION}-all.jar" $APOC_HOME
# set up CARNIVAL_HOME directory
WORKDIR ${CARNIVAL_HOME}/config
COPY app/carnival-core/config/*yml-template /${CARNIVAL_HOME}/config/
COPY app/carnival-core/config/logback.xml-travis-template /${CARNIVAL_HOME}/config/
RUN rename -v 's/-travis-template//' *travis-template
RUN rename -v 's/-template//' *-template
RUN dos2unix **
RUN mkdir ${CARNIVAL_HOME}/target
RUN mkdir ${CARNIVAL_HOME}/data
RUN mkdir ${CARNIVAL_HOME}/data/cache
# update APOC location in application.yml config file
RUN sed -i "s#/path/to/neo4j/plugins#${APOC_HOME}#" application.yml