-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support for installing plugins such as apocat runtime
- Loading branch information
Andrew Jefferson
committed
Jun 20, 2019
1 parent
645130a
commit 9c30aee
Showing
4 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env bash | ||
set -o errexit -o nounset | ||
[[ -n "${TRACE:-}" ]] && set -o xtrace | ||
|
||
. "$(dirname "$0")/helpers.sh" | ||
|
||
readonly image="$1" | ||
readonly series="$2" | ||
readonly cname="neo4j-$(uuidgen)" | ||
|
||
readonly result="$(docker run --rm --name "${cname}" --env NEO4JPLUGINS='["neo4j-contrib/neo4j-apoc-procedures"]' "${image}" ls plugins)" | ||
|
||
if [[ "${result}" == *"neo4j-contrib_neo4j-apoc-procedures.jar"* ]]; then | ||
echo "apoc jar in plugins." | ||
else | ||
echo >&2 "missing apoc jar 1" | ||
exit 1 | ||
fi | ||
|
||
readonly cname2="neo4j-$(uuidgen)" | ||
readonly plugins="$(mktemp -d)" | ||
readonly result2="$(docker run --rm --name "${cname2}" --env NEO4JPLUGINS='["neo4j-contrib/neo4j-apoc-procedures"]' -v "${plugins}:/plugins" "${image}" ls /plugins)" | ||
|
||
echo "${result2}" | ||
if [[ "${result2}" == *"neo4j-contrib_neo4j-apoc-procedures.jar"* ]]; then | ||
echo "apoc jar in plugins." | ||
else | ||
echo >&2 "missing apoc jar 2" | ||
exit 1 | ||
fi | ||
|
||
if [[ ! -f "${plugins}/neo4j-contrib_neo4j-apoc-procedures.jar" ]]; then | ||
echo >&2 "missing apoc jar 3" | ||
exit 1 | ||
fi | ||
|
||
# TODO: test calling an apoc procedure |