Unverified Commit c4ae9f5a authored by Shaun Elliott's avatar Shaun Elliott Committed by GitHub

added neo4j apoc plugins, for backup purposes (#255)

* * setting up a pvc to allow for neo4j backups

* * allowing pvc to be turned off
* allowing pvc size to be configurable

* ISSUE 196
* added neo4j plugins
* added chart versions
* removed image pull policy never from metadata service

* * PR comment fix; using the correct maven repo urls
parent ecd066ec
name: amundsen
version: 0.0.1
version: 0.1.0
home: https://github.com/lyft/amundsen
......@@ -77,7 +77,6 @@ spec:
{{- else }}
image: {{ .Values.dockerhubImagePath }}/{{ .Chart.Name }}-{{ .Values.metadataServiceName }}{{ if .Values.oidcEnabled }}-oidc{{ end }}:{{ .Values.metadataImageVersion }}
{{- end }}
imagePullPolicy: Never
ports:
- containerPort: 5000
env:
......
name: elasticsearch
home: https://www.elastic.co
appVersion: 6.7.0
version: 0.1.0
\ No newline at end of file
name: neo4j
home: https://www.neo4j.com
appVersion: 3.3.0
version: 0.1.0
\ No newline at end of file
......@@ -24,6 +24,26 @@ spec:
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
initContainers:
- name: init-neo4j-plugins
image: "appropriate/curl:latest"
imagePullPolicy: "IfNotPresent"
command:
- "/bin/sh"
- "-c"
- |
curl -L https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/3.3.0.4/apoc-3.3.0.4-all.jar -O
curl -L https://github.com/neo4j-contrib/neo4j-graph-algorithms/releases/download/3.3.5.0/graph-algorithms-algo-3.3.5.0.jar -O
curl -L https://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-core/1.11.250/aws-java-sdk-core-1.11.250.jar -O
curl -L https://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-s3/1.11.250/aws-java-sdk-s3-1.11.250.jar -O
curl -L https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.5.4/httpclient-4.5.4.jar -O
curl -L https://repo1.maven.org/maven2/org/apache/httpcomponents/httpcore/4.4.8/httpcore-4.4.8.jar -O
curl -L https://repo1.maven.org/maven2/joda-time/joda-time/2.9.9/joda-time-2.9.9.jar -O
chmod 755 *.jar
mv *.jar /var/lib/neo4j/plugins
volumeMounts:
- name: plugins
mountPath: /var/lib/neo4j/plugins
containers:
- name: {{ .Chart.Name }}
image: {{ .Chart.Name }}:{{ .Chart.AppVersion }}
......@@ -41,6 +61,8 @@ spec:
{{- if (or (kindIs "invalid" .Values.neo4jpvc) .Values.neo4jpvc)}}
- name: data
mountPath: /var/lib/neo4j/data
- name: plugins
mountPath: /var/lib/neo4j/plugins
{{- end}}
volumes:
- name: conf
......@@ -51,6 +73,10 @@ spec:
persistentVolumeClaim:
claimName: neo4j-pvc
{{- end}}
- name: plugins
hostPath:
path: "/mnt/ephemeral/neo4j/plugins"
type: DirectoryOrCreate
{{- with .Values.resources }}
resources:
{{ toYaml . | indent 8 }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment