-
Notifications
You must be signed in to change notification settings - Fork 0
/
neo4j-v5.Dockerfile
44 lines (30 loc) · 1.5 KB
/
neo4j-v5.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
36
37
38
39
40
41
42
43
44
# Build container
FROM eclipse-temurin:17-jdk as builder
WORKDIR /build
COPY . .
RUN ./gradlew --no-daemon --parallel build installDist
# App container
FROM eclipse-temurin:17-jre
# Install and configure Neo4j
RUN apt-get update \
&& apt-get --no-install-recommends install -y wget gnupg
RUN wget -O - https://debian.neo4j.com/neotechnology.gpg.key | gpg --dearmor -o /etc/apt/keyrings/neo4j.gpg \
&& echo 'deb [signed-by=/etc/apt/keyrings/neo4j.gpg] https://debian.neo4j.com stable 5' | tee /etc/apt/sources.list.d/neo4j.list \
&& apt-get update \
&& apt-get --no-install-recommends install -y neo4j
#RUN mkdir /etc/neo4j/plugins
RUN pwd
RUN find . | grep neo4j/plugins
#RUN wget -P /etc/neo4j/plugins https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/5.19.0/apoc-5.19.0-extended.jar
RUN ls -lah /usr/share/neo4j
RUN ls -lah /var/lib/neo4j
RUN ls -lah /etc/neo4j
#RUN mkdir /usr/share/neo4j/plugins
#RUN wget -P /usr/share/neo4j/plugins https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/5.19.0/apoc-5.19.0-extended.jar
#RUN ls /var/lib/neo4j/
#RUN wget -P /var/lib/neo4j/plugins/ https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/5.19.0/apoc-5.19.0-extended.jar
#RUN ls /usr/share/neo4j/plugins
#ENV NEO4J_HOME=/usr/share/neo4j
RUN neo4j-admin dbms set-initial-password password
COPY --from=builder /build/cpg-contract-checker-app/build/install/ /
RUN ln -s /cpg-contract-checker-app/bin/cpg-contract-checker-app /usr/local/bin/