This repository was archived by the owner on Jul 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Merged
Java repackage #145
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
5504b2e
removed multiple rpm cypher-shells, replaced with java adapter.
jennyowen 5c53c7f
wrote Makefile target to build java adapter.
jennyowen f86a7e9
added makefile target for creating docker volume containing yum repos…
jennyowen da8d551
going to try building yum repo in each docker image instead of as a v…
jennyowen 9bc47d9
java adapter tests no longer create docker volume for yum repository
jennyowen 93d19b0
added java adaptor for java11 headless
jennyowen e719764
minor fix to the read me
jennyowen f436400
cleaned up some comments
jennyowen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
18 changes: 18 additions & 0 deletions
18
packaging/rpm-java-adapter/neo4j-java-adapter-jre-11-headless.spec
This file contains hidden or 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,18 @@ | ||
| Name: neo4j-java-adapter-jre-11-headless | ||
| Version: 1.0.0 | ||
| Release: 1%{?dist} | ||
| Summary: Meta package so that Neo4j can be compatible with java 8 and java 11 in both openjdk and oracle | ||
| License: GPLv3 | ||
|
|
||
| Provides: jre-headless = 11 | ||
| Requires: jre-11-headless | ||
| BuildArch: noarch | ||
|
|
||
| %description | ||
| Meta package so that Neo4j can be compatible with java 8 and java 11 in both OpenJDK and Oracle. | ||
| Contains no source. | ||
|
|
||
| %prep | ||
| %build | ||
| %install | ||
| %files |
This file contains hidden or 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,18 @@ | ||
| Name: neo4j-java-adapter-jre-11 | ||
| Version: 1.0.0 | ||
| Release: 1%{?dist} | ||
| Summary: Meta package so that Neo4j can be compatible with java 8 and java 11 in both openjdk and oracle | ||
| License: GPLv3 | ||
|
|
||
| Provides: jre = 11, java = 11, jre-headless = 11 | ||
| Requires: jre-11 | ||
| BuildArch: noarch | ||
|
|
||
| %description | ||
| Meta package so that Neo4j can be compatible with java 8 and java 11 in both OpenJDK and Oracle. | ||
| Contains no source. | ||
|
|
||
| %prep | ||
| %build | ||
| %install | ||
| %files |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,12 @@ | ||
| FROM centos:7 | ||
|
|
||
| VOLUME /repo | ||
|
|
||
| COPY *.rpm /repo/ | ||
| COPY tempneo4j.repo /tmp/ | ||
| COPY entrypoint.sh /tmp/ | ||
|
|
||
| RUN yum --assumeyes install ${TEST_JAVA} createrepo bc && \ | ||
| mv /tmp/tempneo4j.repo /etc/yum.repos.d/ | ||
|
|
||
| ENTRYPOINT [ "/tmp/entrypoint.sh", "${TEST_JAVA}" ] |
This file contains hidden or 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,14 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| javaTested=$1 | ||
| javaRegex="openjdk" | ||
| createrepo /repo | ||
|
|
||
| if [ $(yum --assumeno install cypher-shell | grep -c "${javaRegex}" | bc) != "0" ]; then | ||
| echo "Attempt to install java dependency "${javaTested} " FAILED. Here is the install output:" | ||
| yum --assumeno install cypher-shell | ||
| exit 1 | ||
| else | ||
| echo "cypher-shell did not appear to download another java as a dependency when ${javaTested} is pre-installed. Success!" | ||
| exit 0 | ||
| fi |
This file contains hidden or 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,5 @@ | ||
| [tempneo4j] | ||
| name=temp neo4j repo | ||
| baseurl=file:///repo | ||
| enabled=1 | ||
| gpgcheck=0 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much nicer!